Fix E2E against local cluster to not fail on helm-upgrade (#1648)
This commit is contained in:
parent
29f621e1c8
commit
4152afbd30
|
|
@ -41,6 +41,13 @@ TEST_ID=${TEST_ID:-default}
|
||||||
|
|
||||||
if [ "${tool}" == "helm" ]; then
|
if [ "${tool}" == "helm" ]; then
|
||||||
set -v
|
set -v
|
||||||
|
flags=()
|
||||||
|
if [ "${IMAGE_PULL_SECRET}" != "" ]; then
|
||||||
|
flags+=( --set imagePullSecrets[0].name=${IMAGE_PULL_SECRET})
|
||||||
|
flags+=( --set image.actionsRunnerImagePullSecrets[0].name=${IMAGE_PULL_SECRET})
|
||||||
|
flags+=( --set githubWebhookServer.imagePullSecrets[0].name=${IMAGE_PULL_SECRET})
|
||||||
|
fi
|
||||||
|
set -vx
|
||||||
helm upgrade --install actions-runner-controller \
|
helm upgrade --install actions-runner-controller \
|
||||||
charts/actions-runner-controller \
|
charts/actions-runner-controller \
|
||||||
-n actions-runner-system \
|
-n actions-runner-system \
|
||||||
|
|
@ -51,10 +58,7 @@ if [ "${tool}" == "helm" ]; then
|
||||||
--set image.tag=${VERSION} \
|
--set image.tag=${VERSION} \
|
||||||
--set podAnnotations.test-id=${TEST_ID} \
|
--set podAnnotations.test-id=${TEST_ID} \
|
||||||
--set githubWebhookServer.podAnnotations.test-id=${TEST_ID} \
|
--set githubWebhookServer.podAnnotations.test-id=${TEST_ID} \
|
||||||
--set imagePullSecrets[0].name=${IMAGE_PULL_SECRET} \
|
${flags[@]} --set image.imagePullPolicy=${IMAGE_PULL_POLICY} \
|
||||||
--set image.actionsRunnerImagePullSecrets[0].name=${IMAGE_PULL_SECRET} \
|
|
||||||
--set githubWebhookServer.imagePullSecrets[0].name=${IMAGE_PULL_SECRET} \
|
|
||||||
--set image.imagePullPolicy=${IMAGE_PULL_POLICY} \
|
|
||||||
-f ${VALUES_FILE}
|
-f ${VALUES_FILE}
|
||||||
set +v
|
set +v
|
||||||
# To prevent `CustomResourceDefinition.apiextensions.k8s.io "runners.actions.summerwind.dev" is invalid: metadata.annotations: Too long: must have at most 262144 bytes`
|
# To prevent `CustomResourceDefinition.apiextensions.k8s.io "runners.actions.summerwind.dev" is invalid: metadata.annotations: Too long: must have at most 262144 bytes`
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
# Set actions-runner-controller settings for testing
|
# Set actions-runner-controller settings for testing
|
||||||
logLevel: "-4"
|
logLevel: "-4"
|
||||||
imagePullSecrets:
|
imagePullSecrets: []
|
||||||
- name:
|
|
||||||
image:
|
image:
|
||||||
actionsRunnerImagePullSecrets:
|
# This needs to be an empty array rather than a single-item array with empty name.
|
||||||
- name:
|
# Otherwise you end up with the following error on helm-upgrade:
|
||||||
|
# Error: UPGRADE FAILED: failed to create patch: map: map[] does not contain declared merge key: name && failed to create patch: map: map[] does not contain declared merge key: name
|
||||||
|
actionsRunnerImagePullSecrets: []
|
||||||
runner:
|
runner:
|
||||||
statusUpdateHook:
|
statusUpdateHook:
|
||||||
enabled: true
|
enabled: true
|
||||||
rbac:
|
rbac:
|
||||||
allowGrantingKubernetesContainerModePermissions: true
|
allowGrantingKubernetesContainerModePermissions: true
|
||||||
githubWebhookServer:
|
githubWebhookServer:
|
||||||
imagePullSecrets:
|
imagePullSecrets: []
|
||||||
- name:
|
|
||||||
logLevel: "-4"
|
logLevel: "-4"
|
||||||
enabled: true
|
enabled: true
|
||||||
labels: {}
|
labels: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue