Set `ACCEPTANCE_TEST_DEPLOYMENT_TOOL=helm` to run acceptance tests with chart

This commit is contained in:
Yusuke Kuoka 2020-11-14 20:31:37 +09:00
parent ce48dc58e6
commit 6a4c29d30e
1 changed files with 12 additions and 3 deletions

View File

@ -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