forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud-provider-azure-1.31.yaml
78 lines (71 loc) · 2.69 KB
/
cloud-provider-azure-1.31.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
package:
name: cloud-provider-azure-1.31
version: 1.31.1
epoch: 0
description: Cloud provider for Azure
copyright:
- license: Apache-2.0
var-transforms:
- from: ${{package.version}}
match: ^(\d+\.\d+)\.\d+$
replace: "$1"
to: major-minor-version
data:
- name: cloud-provider-azure-packages
items:
cloud-controller-manager: Controller manager for Azure Cloud
cloud-node-manager: Node manager for Azure Cloud
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubernetes-sigs/cloud-provider-azure
tag: v${{package.version}}
expected-commit: 301bb5195472aa76bb36e24726c197ccbb19cfca
subpackages:
- range: cloud-provider-azure-packages
name: cloud-provider-azure-${{range.key}}-${{vars.major-minor-version}}
description: ${{range.value}}
pipeline:
- uses: go/bump
with:
deps: github.com/golang-jwt/jwt/[email protected]
replaces: github.com/golang-jwt/jwt/v4=github.com/golang-jwt/jwt/[email protected]
- uses: go/build
with:
packages: ./cmd/${{range.key}}
ldflags: |
-X sigs.k8s.io/cloud-provider-azure/pkg/version.gitVersion=v${{package.version}}
-X k8s.io/client-go/pkg/version.gitVersion=v${{package.version}}
-X sigs.k8s.io/cloud-provider-azure/pkg/version.gitCommit=$(git rev-parse HEAD)
-X k8s.io/client-go/pkg/version.gitCommit=$(git rev-parse HEAD)
-X sigs.k8s.io/cloud-provider-azure/pkg/version.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
-X k8s.io/client-go/pkg/version.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
output: ${{range.key}}
- range: cloud-provider-azure-packages
name: cloud-provider-azure-${{range.key}}-${{vars.major-minor-version}}-compat
description: "compat package to place binaries at locations expected by upstream deployment"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/local/bin
ln -sf /usr/bin/${{range.key}} ${{targets.subpkgdir}}/usr/local/bin/${{range.key}}
test:
environment:
contents:
packages:
- cloud-provider-azure-cloud-controller-manager-1.31
- cloud-provider-azure-cloud-node-manager-1.31
pipeline:
- name: verify cloud-controller-manager
runs: |
/usr/bin/cloud-controller-manager --help
/usr/bin/cloud-controller-manager --version | grep v${{package.version}}
- name: verify cloud-node-manager
runs: |
/usr/bin/cloud-node-manager --help
/usr/bin/cloud-node-manager --version | grep v${{package.version}}
update:
enabled: true
github:
identifier: kubernetes-sigs/cloud-provider-azure
strip-prefix: v
tag-filter: v1.31