Skip to content

Commit

Permalink
e2e: add imagePullSecrets
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Nov 22, 2023
1 parent a3b6b51 commit 4944631
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/e2e/e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit 4944631

Please sign in to comment.