Fixing the failed PipelineRun due to YAML issues
To get your pipeline working again, follow these steps:
- Add
---
to the first line of all the YAML files in the./sample-go-app/clouds-api/k8s
folder. - Fix the indentation of the
kustomization.yaml
file by adding two spaces at the beginning of all the lines afterresources
, like so:--- resources: - deployment.yaml #add two spaces at the begging of the line - service.yaml #add two spaces at the begging of the line - route.yaml #add two spaces at the begging of the line
- Add a new line at the end of the
service.yaml
file. - Commit and push the changes:
$ git add * $ git commit -m "fixed yaml files" $ git push
A new PipelineRun should be triggered automatically and complete.