-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathkeda-2.16.yaml
119 lines (109 loc) · 3.26 KB
/
keda-2.16.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
package:
name: keda-2.16
version: 2.16.1
epoch: 6
description: KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes
copyright:
- license: Apache-2.0
dependencies:
runtime:
- tzdata
provides:
- keda=${{package.full-version}}
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
- protobuf-dev
- protoc
pipeline:
- uses: git-checkout
with:
expected-commit: ce14b239e0300f388b0425aef68154d8070cd66f
repository: https://github.com/kedacore/keda
tag: v${{package.version}}
- uses: go/bump
with:
deps: |-
github.com/go-jose/go-jose/v4@v4.0.5
golang.org/x/oauth2@v0.27.0
golang.org/x/crypto@v0.35.0
golang.org/x/net@v0.36.0
- runs: |
ARCH=$(go env GOARCH) make build
mkdir -p "${{targets.destdir}}/usr/bin"
mv bin/keda "${{targets.destdir}}/usr/bin"
- uses: strip
subpackages:
- name: "${{package.name}}-metrics-apiserver"
description: "Metrics adapter for Keda"
dependencies:
runtime:
- tzdata
provides:
- keda-adapter=${{package.full-version}}
- keda-metrics-apiserver=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/usr/bin"
mv bin/keda-adapter "${{targets.subpkgdir}}/usr/bin"
- uses: strip
test:
pipeline:
- runs: |
ls -halF /usr/bin/keda-adapter
keda-adapter --help 2>&1 | grep ^Usage
- name: "${{package.name}}-admission-webhooks"
description: "Webhooks for Keda"
dependencies:
runtime:
- tzdata
provides:
- keda-admission-webhooks=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/usr/bin"
mv bin/keda-admission-webhooks "${{targets.subpkgdir}}/usr/bin"
- uses: strip
test:
pipeline:
- runs: |
keda-admission-webhooks --help 2>&1 | grep ^Usage
- name: "${{package.name}}-compat"
description: "Compatibility package to place binaries in the location expected by upstream helm charts"
dependencies:
provides:
- keda-compat=${{package.full-version}}
pipeline:
- runs: |
# The helm chart expects the keda binaries to be in / instead of /usr/bin
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/keda ${{targets.subpkgdir}}/keda
ln -sf /usr/bin/keda-admission-webhooks ${{targets.subpkgdir}}/keda-admission-webhooks
ln -sf /usr/bin/keda-adapter ${{targets.subpkgdir}}/keda-adapter
- uses: strip
test:
environment:
contents:
packages:
- "${{package.name}}"
- "${{package.name}}-admission-webhooks"
- "${{package.name}}-metrics-apiserver"
pipeline:
- runs: |
/keda --help 2>&1 | grep ^Usage
/keda-admission-webhooks --help 2>&1 | grep ^Usage
/keda-adapter --help 2>&1 | grep ^Usage
update:
enabled: true
github:
identifier: kedacore/keda
strip-prefix: v
tag-filter: v2.16.
test:
pipeline:
- runs: |
keda --help 2>&1 | grep ^Usage