From 49446315619c11faeb60ee4a26fce624c6aef099 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 22 Nov 2023 16:17:45 +0100 Subject: [PATCH] e2e: add imagePullSecrets Signed-off-by: Vincent Demeester --- test/e2e/e2e.bats | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/e2e/e2e.bats b/test/e2e/e2e.bats index 690bb9a..c5d32af 100644 --- a/test/e2e/e2e.bats +++ b/test/e2e/e2e.bats @@ -9,6 +9,14 @@ source ./test/helper/helper.sh [ -n "${E2E_MAVEN_PARAMS_URL}" ] [ -n "${E2E_MAVEN_PARAMS_REVISION}" ] + kubectl delete secret regcred || true + run kubectl create secret generic regcred \ + --from-file=.dockerconfigjson=$HOME/.docker/config.json \ + --type=kubernetes.io/dockerconfigjson + assert_success + run kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "regcred"}]}' + assert_success + run tkn pipeline start task-maven \ --param="URL=${E2E_MAVEN_PARAMS_URL}" \ --param="REVISION=${E2E_MAVEN_PARAMS_REVISION}" \