From 2b26a7a6d36e63fe9402744f0d7ff578902ba0bc Mon Sep 17 00:00:00 2001 From: Tom Lebreux Date: Wed, 11 Sep 2024 16:35:30 -0400 Subject: [PATCH] Use any webhook version in the charts --- .github/workflows/scripts/start-rancher.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/start-rancher.sh b/.github/workflows/scripts/start-rancher.sh index 8f41b7014..965124412 100755 --- a/.github/workflows/scripts/start-rancher.sh +++ b/.github/workflows/scripts/start-rancher.sh @@ -24,4 +24,17 @@ kubectl rollout status --namespace cert-manager deploy/cert-manager --timeout 1m # Chart based -helm upgrade --install rancher "$CHART_PATH" --namespace cattle-system --set replicas=1 --set hostname=localhost --wait --timeout=10m --create-namespace --version "$VERSION" --set rancherImage=rancher/rancher --set rancherImageTag="$RANCHER_IMAGE_TAG" +# Set empty CATTLE_RANCHER_WEBHOOK_VERSION to install any webhook that's in the +# bundled charts index +helm upgrade \ + --install rancher "$CHART_PATH" \ + --namespace cattle-system \ + --wait --timeout=10m \ + --create-namespace \ + --version "$VERSION" \ + --set replicas=1 \ + --set hostname=localhost \ + --set rancherImage=rancher/rancher \ + --set rancherImageTag="$RANCHER_IMAGE_TAG" \ + --set 'extraEnv[0].name=CATTLE_RANCHER_WEBHOOK_VERSION' \ + --set "extraEnv[0].value="