forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkuma-2.9.yaml
172 lines (161 loc) · 6.3 KB
/
kuma-2.9.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
package:
name: kuma-2.9
version: 2.9.0
epoch: 1
description: A multi-zone service mesh for containers, Kubernetes and VMs.
copyright:
- license: Apache-2.0
dependencies:
provides:
- kuma=${{package.full-version}}
var-transforms:
- from: ${{package.version}}
match: ^(\d+\.\d+)\.\d+$
replace: "$1"
to: major-minor-version
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kumahq/kuma
tag: ${{package.version}}
expected-commit: 948e6a4391632607148f4dcdf7e9adce422a8075
- uses: go/bump
with:
deps: github.com/golang-jwt/jwt/[email protected]
- uses: patch
with:
patches: remove_envoy_version_check.patch
subpackages:
- name: kumactl-${{vars.major-minor-version}}
description: Kuma control plane command-line utility
dependencies:
provides:
- kumactl=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: ./app/kumactl
output: kumactl
ldflags: |
-X github.com/kumahq/kuma/pkg/version.version=${{package.version}}
-X github.com/kumahq/kuma/pkg/version.gitTag=$(git name-rev --tags --name-only $(git rev-parse HEAD))
-X github.com/kumahq/kuma/pkg/version.gitCommit=$(git rev-parse HEAD)
-X github.com/kumahq/kuma/pkg/version.buildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/kumahq/kuma/pkg/version.Envoy=$(cat ./mk/dev.mk | grep "ENVOY_VERSION ?= " | sed "s/ENVOY_VERSION ?= //g")
test:
pipeline:
- name: Test kumactl
runs: |
kumactl help
kumactl version | grep ${{package.version}}
- name: kuma-cp-${{vars.major-minor-version}}
description: Kuma control plane
dependencies:
provides:
- kuma-cp=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: ./app/kuma-cp
output: kuma-cp
ldflags: |
-X github.com/kumahq/kuma/pkg/version.version=${{package.version}}
-X github.com/kumahq/kuma/pkg/version.gitTag=$(git name-rev --tags --name-only $(git rev-parse HEAD))
-X github.com/kumahq/kuma/pkg/version.gitCommit=$(git rev-parse HEAD)
-X github.com/kumahq/kuma/pkg/version.buildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/kumahq/kuma/pkg/version.Envoy=$(cat ./mk/dev.mk | grep "ENVOY_VERSION ?= " | sed "s/ENVOY_VERSION ?= //g")
test:
pipeline:
- name: Test kuma control plane
runs: |
kuma-cp help
kuma-cp version | grep ${{package.version}}
- name: kuma-dp-${{vars.major-minor-version}}
description: Kuma data plane
dependencies:
provides:
- kuma-dp=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: ./app/kuma-dp
output: kuma-dp
ldflags: |
-X github.com/kumahq/kuma/pkg/version.version=${{package.version}}
-X github.com/kumahq/kuma/pkg/version.gitTag=$(git name-rev --tags --name-only $(git rev-parse HEAD))
-X github.com/kumahq/kuma/pkg/version.gitCommit=$(git rev-parse HEAD)
-X github.com/kumahq/kuma/pkg/version.buildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/kumahq/kuma/pkg/version.Envoy=$(cat ./mk/dev.mk | grep "ENVOY_VERSION ?= " | sed "s/ENVOY_VERSION ?= //g")
test:
pipeline:
- name: Test kuma data plane
runs: |
kuma-dp help
kuma-dp version | grep ${{package.version}}
- name: kuma-cni-${{vars.major-minor-version}}
description: Kuma CNI plugin
dependencies:
provides:
- kuma-cni=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: ./app/cni/cmd/kuma-cni
output: kuma-cni
ldflags: |
-X github.com/kumahq/kuma/pkg/version.version=${{package.version}}
-X github.com/kumahq/kuma/pkg/version.gitTag=$(git name-rev --tags --name-only $(git rev-parse HEAD))
-X github.com/kumahq/kuma/pkg/version.gitCommit=$(git rev-parse HEAD)
-X github.com/kumahq/kuma/pkg/version.buildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/kumahq/kuma/pkg/version.Envoy=$(cat ./mk/dev.mk | grep "ENVOY_VERSION ?= " | sed "s/ENVOY_VERSION ?= //g")
test:
pipeline:
- name: Test kuma cni
runs: |
kuma-cni help
kuma-cni version
- name: kuma-install-cni-${{vars.major-minor-version}}
description: Kuma CNI installer
dependencies:
provides:
- kuma-install-cni=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: ./app/cni/cmd/install
output: install-cni
ldflags: |
-X github.com/kumahq/kuma/pkg/version.version=${{package.version}}
-X github.com/kumahq/kuma/pkg/version.gitTag=$(git name-rev --tags --name-only $(git rev-parse HEAD))
-X github.com/kumahq/kuma/pkg/version.gitCommit=$(git rev-parse HEAD)
-X github.com/kumahq/kuma/pkg/version.buildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
-X github.com/kumahq/kuma/pkg/version.Envoy=$(cat ./mk/dev.mk | grep "ENVOY_VERSION ?= " | sed "s/ENVOY_VERSION ?= //g")
- name: kuma-cni-compat-${{vars.major-minor-version}}
description: Kuma CNI compat
dependencies:
provides:
- kuma-cni-compat=${{package.full-version}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/opt/cni/bin
ln -sf /usr/bin/kuma-cni ${{targets.contextdir}}/opt/cni/bin/kuma-cni
ln -sf /usr/bin/install-cni ${{targets.contextdir}}/install-cni
test:
environment:
contents:
packages:
- kuma-cni
- kuma-install-cni
pipeline:
- name: Test kuma cni compat
runs: |
test -x /install-cni
test -x /opt/cni/bin/kuma-cni
/opt/cni/bin/kuma-cni help
/opt/cni/bin/kuma-cni version
update:
enabled: true
github:
identifier: kumahq/kuma
tag-filter: "2.9"
use-tag: true