acceptance: Do recreate the controller-manager secret on every deployment

We had to manually remove the secret first to update the GitHub credentials used by the controller, which was cumbersome.
Note that you still need to recreate the controller pods and the gh webhook server pods to let them remount the recreated secret.
This commit is contained in:
Yusuke Kuoka 2022-02-16 11:42:38 +00:00
parent 92e133e007
commit 1e452358b4
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ tpe=${ACCEPTANCE_TEST_SECRET_TYPE}
VALUES_FILE=${VALUES_FILE:-$(dirname $0)/values.yaml}
kubectl delete secret controller-manager || :
if [ "${tpe}" == "token" ]; then
if ! kubectl get secret controller-manager -n actions-runner-system >/dev/null; then
kubectl create secret generic controller-manager \