Skip to content

Commit e7d7b49

Browse files
ci: add job for sidecar container feature
Signed-off-by: Mike Beaumont <[email protected]>
1 parent 653fd37 commit e7d7b49

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.circleci/config.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ parameters:
3636
e2e_param_cniNetworkPlugin:
3737
type: string
3838
default: flannel
39-
e2e_param_legacyKDS:
40-
type: boolean
41-
default: false
39+
e2e_param_sidecarContainers:
40+
type: string
41+
default: ""
4242
# See https://circleci.com/docs/2.0/configuration-reference/#commands-requires-version-21.
4343
commands:
4444
install_build_tools:
@@ -265,8 +265,8 @@ jobs:
265265
description: The CNI networking plugin to use [flannel | calico]
266266
type: string
267267
default: flannel
268-
legacyKDS:
269-
description: if should run tests with new implementation of KDS
268+
sidecarContainers:
269+
description: if should run tests with sidecar containers
270270
type: boolean
271271
default: false
272272
executor:
@@ -285,7 +285,7 @@ jobs:
285285
- {equal: [calico, << parameters.cniNetworkPlugin >>]}
286286
- {equal: [kindIpv6, << parameters.k8sVersion >>]}
287287
- {equal: [arm64, << parameters.arch >>]}
288-
- {equal: [true, << parameters.legacyKDS >>]}
288+
# - {equal: [true, << parameters.sidecarContainers >>]}
289289
- {equal: [<< pipeline.parameters.first_k8s_version >>, << parameters.k8sVersion >>]}
290290
steps:
291291
- halt_non_priority_job
@@ -362,8 +362,8 @@ jobs:
362362
export MAKE_PARAMETERS="-j2"
363363
fi
364364
365-
if [[ "<< parameters.legacyKDS >>" == true ]]; then
366-
export KUMA_LEGACY_KDS=true
365+
if [[ "<< parameters.sidecarContainers >>" == true ]]; then
366+
export KUMA_EXPERIMENTAL_SIDECAR_CONTAINERS=true
367367
fi
368368
369369
if [[ "<< parameters.target >>" == "" ]]; then
@@ -403,8 +403,8 @@ jobs:
403403
description: The CNI networking plugin to use [flannel | calico]
404404
type: string
405405
default: flannel
406-
legacyKDS:
407-
description: if should run tests with new implementation of KDS
406+
sidecarContainers:
407+
description: if should run tests with sidecar containers
408408
type: boolean
409409
executor:
410410
name: vm-<< parameters.arch >>
@@ -471,8 +471,8 @@ jobs:
471471
export MAKE_PARAMETERS="-j2"
472472
fi
473473
474-
if [[ "<< parameters.legacyKDS >>" == true ]]; then
475-
export KUMA_LEGACY_KDS=true
474+
if [[ "<< parameters.sidecarContainers >>" == true ]]; then
475+
export KUMA_EXPERIMENTAL_SIDECAR_CONTAINERS=true
476476
fi
477477
478478
if [[ "<< parameters.target >>" == "" ]]; then
@@ -625,14 +625,14 @@ workflows:
625625
arch: [amd64, arm64]
626626
requires: [build, go_cache-<< matrix.arch >>]
627627
- e2e:
628-
name: << matrix.target >>:<< matrix.arch >>-<< matrix.k8sVersion >>-legacy-kds
628+
name: << matrix.target >>:<< matrix.arch >>-<< matrix.k8sVersion >>-sidecar-containers
629629
matrix:
630-
alias: legacy-kds
630+
alias: sidecar-containers
631631
parameters:
632632
k8sVersion: [<< pipeline.parameters.last_k8s_version >>]
633-
target: [multizone]
633+
target: [kubernetes]
634634
arch: [amd64]
635-
legacyKDS: [true]
635+
sidecarContainers: [true]
636636
requires: [build, go_cache-amd64]
637637
- e2e:
638638
name: << matrix.target >>:<< matrix.arch >>-<< matrix.k8sVersion >>-calico
@@ -661,6 +661,6 @@ workflows:
661661
k8sVersion: << pipeline.parameters.e2e_param_k8sVersion >>
662662
target: << pipeline.parameters.e2e_param_target >>
663663
arch: << pipeline.parameters.e2e_param_arch >>
664-
legacyKDS: << pipeline.parameters.e2e_param_legacyKDS >>
664+
sidecarContainers: {not: {equal: [<< pipeline.parameters.e2e_param_sidecarContainers >>, ""]}}
665665
cniNetworkPlugin: << pipeline.parameters.e2e_param_cniNetworkPlugin >>
666666
parallelism: << pipeline.parameters.e2e_param_parallelism >>

.github/workflows/build-test-distribute.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,23 @@ jobs:
221221
"arch": ["amd64"],
222222
"parallelism": [4],
223223
"cniNetworkPlugin": ["flannel"],
224-
"legacyKDS": [false]
224+
"sidecarContainers": [""]
225225
},
226226
"test_e2e_env": {
227227
"target": ["kubernetes", "universal", "multizone"],
228228
"k8sVersion": ["kind", "kindIpv6", "${{ env.K8S_MIN_VERSION }}", "${{ env.K8S_MAX_VERSION }}"],
229229
"arch": ["amd64"],
230230
"parallelism": [1],
231231
"cniNetworkPlugin": ["flannel"],
232-
"legacyKDS": [false],
232+
"sidecarContainers": [""],
233233
"exclude":[
234234
{"target": "kubernetes", "k8sVersion":"kind"},
235235
{"target": "multizone", "k8sVersion":"kind"},
236236
{"target":"universal", "k8sVersion":"${{ env.K8S_MIN_VERSION }}"},
237237
{"target":"universal", "k8sVersion":"${{ env.K8S_MAX_VERSION }}"}
238238
],
239239
"include":[
240-
{"legacyKDS": true, "k8sVersion": "${{ env.K8S_MAX_VERSION }}", "target": "multizone", "arch": "amd64"},
240+
{"sidecarContainers": "sidecarContainers", "k8sVersion": "${{ env.K8S_MAX_VERSION }}", "target": "kubernetes", "arch": "amd64"},
241241
{"k8sVersion": "${{ env.K8S_MAX_VERSION }}", "target": "multizone", "arch": "arm64"},
242242
{"k8sVersion": "${{ env.K8S_MAX_VERSION }}", "target": "kubernetes", "arch": "arm64"},
243243
{"k8sVersion": "${{ env.K8S_MAX_VERSION }}", "target": "universal", "arch": "arm64"},

.github/workflows/e2e.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
E2E_PARAM_K8S_VERSION: ${{ fromJSON(inputs.matrix).k8sVersion }}
1818
E2E_PARAM_CNI_NETWORK_PLUGIN: ${{ fromJSON(inputs.matrix).cniNetworkPlugin }}
1919
E2E_PARAM_ARCH: ${{ fromJSON(inputs.matrix).arch }}
20-
E2E_PARAM_LEGACY_KDS: ${{ fromJSON(inputs.matrix).legacyKDS }}
20+
E2E_PARAM_SIDECAR_CONTAINERS: ${{ fromJSON(inputs.matrix).sidecarContainers }}
2121
E2E_PARAM_TARGET: ${{ fromJSON(inputs.matrix).target }}
2222
E2E_PARAM_PARALLELISM: ${{ fromJSON(inputs.matrix).parallelism }}
2323
CI_TOOLS_DIR: /home/runner/work/kuma/kuma/.ci_tools
@@ -124,8 +124,8 @@ jobs:
124124
export MAKE_PARAMETERS="-j2"
125125
fi
126126
127-
if [[ "${{ env.E2E_PARAM_LEGACY_KDS }}" == "true" ]]; then
128-
export KUMA_LEGACY_KDS=true
127+
if [[ "${{ env.E2E_PARAM_SIDECAR_CONTAINERS }}" != "" ]]; then
128+
export KUMA_EXPERIMENTAL_SIDECAR_CONTAINERS=true
129129
fi
130130
131131
if [[ "${{ env.E2E_PARAM_TARGET }}" == "" ]]; then

0 commit comments

Comments
 (0)