cloud-builders-community icon indicating copy to clipboard operation
cloud-builders-community copied to clipboard

Fix schema error in kustomize/cloudbuild.yaml

Open xak2000 opened this issue 2 years ago • 1 comments

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.

xak2000 avatar Aug 31 '22 15:08 xak2000

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.

google-cla[bot] avatar Aug 31 '22 15:08 google-cla[bot]