Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve controller log message when non-existent variable #8265

Open
cmoulliard opened this issue Sep 16, 2024 · 0 comments
Open

Improve controller log message when non-existent variable #8265

cmoulliard opened this issue Sep 16, 2024 · 0 comments

Comments

@cmoulliard
Copy link

cmoulliard commented Sep 16, 2024

Todo

Improve the controller log message when non-existent variable is discovered:

Tekton Controller has reported this error: admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: non-existent variable in "#!/usr/bin/env bash\nset -eu\nset -o ...
...
[Gist link](https://gist.githubusercontent.com/cmoulliard/4de2e3ccdcd5b80a81fb87898f671eac/raw/2559e90ef3fba1a63e7711f8de925bcf7f237cba/gistfile1.txt)

Such an issue can occurs if a results param is missing (e.g. results.IMAGE_REF.path)

IMAGE_REF: $(cat /var/workdir/IMAGE_REF)\"\ncat /var/workdir/IMAGE_REF > \"$(results.IMAGE_REF.path)\"\n\n
"": spec.pipelineSpec.tasks[3].taskSpec.steps[0].script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant