-
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
Incorrect templating should result in error #627
Comments
I was going to try to fix this issue, if nobody has jumped on this yet. Just getting my dev environment setup, but will report back once I make some progress. I don't plan on tackling the problem mentioned in the Additional Info portion, though. That does seem like something that needs to be addressed. It almost feels like a separate issue though, if I understand it correctly. |
Haven't had a ton of time to look at this. I added a few tests to Anyways, I will try to find some time tomorrow to take a deeper look. |
This issue ended up being a bit more complex than we originally had thought. Seems like there are some more involved design decisions that would have to be made in order to correctly validate variables at task creation time. Feel free to follow the discussion on this PR for more details: |
@bobcatfish is it still valid ? I feel with the move to |
I'm not sure we do more validation @vdemeester but we are certainly relying on pipelineresources less, and i think pipelineresources are at the heart of the problem here, b/c you don't know what values are available for substitution until runtime. Feels safe to me to close this given #1673 |
The update to knative is to pick up genreconciler and in turn requires us to update our pipelines dependency to v0.13.2. I had to update the hack/ scripts, remove some old pinned dependencies, and drop some deprecated functions and flags. To get the webhook cert generation to work again, I had to replace `sharedmain.MainWithContext` with `sharedmain.WebhookMainWihtConfig`. Needed for #635 and fixes #627 Signed-off-by: Dibyo Mukherjee <[email protected]>
change master to main for upstream
Expected Behavior
Whenever a user uses
${}
templating syntax in their Task, if the value within the {} can't be resolved, an error should be returned to the user and the execution of any related TaskRuns or PipelineRuns should stop.Actual Behavior
With these output resources:
I tried to use this within one of my steps:
Values like
${outputs.resources.builtCredsInitImage}
are incomplete b/c I actually should have been using attributes on the resource, e.g.${outputs.resources.builtCredsInitImage.url}
.Instead of getting an error, the pod was created and tried to execute.
Steps to Reproduce the Problem
Additional Info
side note: how does a user escape the templating, if they need to literally use
${}
in their Task?The text was updated successfully, but these errors were encountered: