Skip to content

Commit 394b3de

Browse files
giorio94michi-covalent
authored andcommitted
gha: centralize kind version and image definition in set-env-variables
Let's define kind-related variables (i.e., version, k8s image and k8s version) inside the set-env-variables action. One all consumers will have been migrated through the subsequent commit, this will ensure consistency across workflows, simplify version bumps as well as the introduction of new workflows depending on them. One extra byproduct is that renovate updates will also stop requesting reviews from all the different teams owning each specific workflow. Signed-off-by: Marco Iorio <[email protected]>
1 parent 91fc572 commit 394b3de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/actions/set-env-variables/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ runs:
1616
echo "CILIUM_CLI_VERSION=$CILIUM_CLI_VERSION" >> $GITHUB_ENV
1717
echo "PUSH_TO_DOCKER_HUB=true" >> $GITHUB_ENV
1818
echo "GCP_PERF_RESULTS_BUCKET=gs://cilium-scale-results" >> $GITHUB_ENV
19+
20+
# renovate: datasource=github-releases depName=kubernetes-sigs/kind
21+
KIND_VERSION="v0.22.0"
22+
# renovate: datasource=docker
23+
KIND_K8S_IMAGE="kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245"
24+
KIND_K8S_VERSION=$(echo "$KIND_K8S_IMAGE" | sed -r 's|.+:(v[0-9a-z.-]+)(@.+)?|\1|')
25+
26+
echo "KIND_VERSION=$KIND_VERSION" >> $GITHUB_ENV
27+
echo "KIND_K8S_IMAGE=$KIND_K8S_IMAGE" >> $GITHUB_ENV
28+
echo "KIND_K8S_VERSION=$KIND_K8S_VERSION" >> $GITHUB_ENV

0 commit comments

Comments
 (0)