From 6a4c29d30e1ba636c8bfc828b57852b8c5838c96 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Sat, 14 Nov 2020 20:31:37 +0900 Subject: [PATCH] Set `ACCEPTANCE_TEST_DEPLOYMENT_TOOL=helm` to run acceptance tests with chart --- acceptance/deploy.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/acceptance/deploy.sh b/acceptance/deploy.sh index 200d656b..1fea1d5d 100755 --- a/acceptance/deploy.sh +++ b/acceptance/deploy.sh @@ -19,9 +19,18 @@ else exit 1 fi -kubectl apply \ - -n actions-runner-system \ - -f release/actions-runner-controller.yaml +tool=${ACCEPTANCE_TEST_DEPLOYMENT_TOOL} + +if [ "${tool}" == "helm" ]; then + helm upgrade --install actions-runner-controller \ + charts/actions-runner-controller \ + -n actions-runner-system \ + --set syncPeriod=5m +else + kubectl apply \ + -n actions-runner-system \ + -f release/actions-runner-controller.yaml +fi kubectl -n actions-runner-system wait deploy/controller-manager --for condition=available