forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addon-resizer.yaml
62 lines (55 loc) · 1.5 KB
/
addon-resizer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package:
name: addon-resizer
version: 1.8.22
epoch: 2
description: Autoscaling components for Kubernetes
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
environment:
CGO_ENABLED: "0"
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubernetes/autoscaler
tag: addon-resizer-${{package.version}}
expected-commit: f36bbcd9008f37ce6fbd0c2b4fcb13e827b52737
- uses: go/build
with:
modroot: addon-resizer
packages: nanny/main/pod_nanny.go
ldflags: -s -w -X k8s.io/autoscaler/addon-resizer/nanny.AddonResizerVersion=${{package.name}}
output: pod_nanny
vendor: true
- uses: strip
subpackages:
- name: "${{package.name}}-compat"
description: "Compatibility package to place binaries in the location expected by upstream Dockerfile"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"
# https://github.com/kubernetes/autoscaler/blob/a3e243f14f24091f1712333b086d807ef38bbd4f/addon-resizer/Dockerfile#L21
ln -sf /usr/bin/pod_nanny ${{targets.subpkgdir}}/pod_nanny
update:
enabled: true
github:
identifier: kubernetes/autoscaler
strip-prefix: addon-resizer-
use-tag: true
tag-filter: addon-resizer-1.8
test:
environment:
contents:
packages:
- ${{package.name}}-compat
pipeline:
- runs: |
set +e
pod_nanny -h
/pod_nanny -h