-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Comments
@cmoulliard could you please provider more information about user case? I guess this is an improvement to the admission webhook? |
Yes as mentioned at the beginning of the Error => |
The use case is pretty simple. If a taskSpec part of a pipelineRun which executes a bash script is missing a result declaration, then the error I reported will take place. See the test case I created within the issue's description @chengjoey |
/assign i got what you mean, currently admission-webhook works fine because |
Would like to add that this is also relevant for regular parameters of a Task. The log does not state which parameter is missing, just that one is missing. In a script that has over a hundred lines that becomes a problem. |
Todo
Improve the controller log message when non-existent variable is discovered:
See : Gist link
Such an issue can occur if a
results param
is missing (e.g. results.IMAGE_REF.path) from the Task Spec definitionTo reproduce the issue, deploy the following PipelineRun
then the controller will report
Remark: The bash script of my example is pretty basic but when it is bigger than a few lines, it is almost impossible for a user to figure out what the issue is
The text was updated successfully, but these errors were encountered: