π [bug] - Tekton step deploy-test fails
Closed this issue Β· 5 comments
π Description
I strictly followed the workshop from the KCD conference today. The Tekton Pipeline fails with the following issue:
STEP-GET-CURRENT-INFO
2024/07/01 14:52:52 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/": unable to create destination directory: mkdir /.docker: permission denied
2024/07/01 14:52:52 warning: unsuccessful cred copy: ".gitconfig" from "/tekton/creds" to "/": unable to open destination: open /.gitconfig: permission denied
2024/07/01 14:52:52 warning: unsuccessful cred copy: ".git-credentials" from "/tekton/creds" to "/": unable to open destination: open /.git-credentials: permission denied
Error: yaml: line 23: could not find expected ':'
STEP-PATCH-ARGO-CONF
2024/07/01 14:52:52 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/": unable to create destination directory: mkdir /.docker: permission denied
2024/07/01 14:52:52 warning: unsuccessful cred copy: ".gitconfig" from "/tekton/creds" to "/": unable to open destination: open /.gitconfig: permission denied
2024/07/01 14:52:52 warning: unsuccessful cred copy: ".git-credentials" from "/tekton/creds" to "/": unable to open destination: open /.git-credentials: permission denied
2024/07/01 14:52:56 Skipping step because a previous step failed
STEP-COMMIT-CHANGES
2024/07/01 14:52:57 Skipping step because a previous step failed
πΆ Steps to reproduce
Follow the instructions at https://petbattle.github.io/gitops-workshop/#/2-attack-of-the-pipelines/3-the-pipelines
π§ββοΈ Suggested solution
Provide guidance to fix this
hey @lieberlois. Thanks for the issue! there is a chance there is a typo or indentation error in GitOps config under tech-exercise/pet-battle/test/values.yaml
file. Would you mind to check that one please? π
Oh my gawd, it was in fact a newline character that was accidentally copied. Thank you so much! π₯³ Great session, I wish we would have had more time π
by the way, if Argo CD is unhappy after you fixed that typo, I suggest you update the version to something like 1.3.3
and trigger the pipeline again. Because Nexus probably is not set up to overwrite the helm package if you are pushing the chart without changing the version.
(for the convenience, we alight application version with the helm chart version hereπ)
just run:
cd /projects/pet-battle-api
mvn -ntp versions:set -DnewVersion=1.3.3
hope it helps β€οΈ
@ckavili Yeah I had to make some more adjustments but eventually got it to work