cloud-builders-community
cloud-builders-community copied to clipboard
Fix schema error in kustomize/cloudbuild.yaml
I don't know how this happened but PR #476 introduced a schema error to kustomize/cloudbuild.yaml
.
For some reason it sets steps[0].env
property as string:
env: 'KUSTOMIZE_VERSION=${_KUSTOMIZE_VERSION}'
But env
is expected to be an array, so CloudBuild can't read the cloudbuild.yaml
file and shows this error when build is triggered:
Your build failed to run: failed unmarshalling build config kustomize/cloudbuild.yaml: json: cannot unmarshal string into Go value of type []json.RawMessage
Maybe CloudBuild had accepted a string as env
before, I don't know, but now it requires an array. So, this PR fixes this.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.