-
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
Task may have uninterpolated variables in BuildSpec #212
Comments
Good call, thanks for opening this @tanner-bruce ! |
While talking with @jonjohnsonjr about tektoncd#216 I wanted to show him an example of a Pipeline wherein there are Tasks that output Images Resources, which are then used as inputs for subsequent Tasks. Our examples Pipelines were meant to do that, but unfortunately when I looked at them, I realized these were not actually hooked up properly. The Tasks were not actually using the Images that were built by previous Tasks, so I have updated them to do that. I also discovered that the templating was incorrect (#108 - adding tests for these examples - and tektoncd#212 - making sure templated variables are actually used - can't come quickly enough!) so I've updated that in the examples as well.
So, if I'm understanding correctly (which is always an open question!), this would entail traversing the |
@abayer Yup. I wrote a quick PoC in
/assign tanner-bruce |
@tanner-bruce - gotcha! Will watch for your PR and won't bother trying to do it myself. =) |
While talking with @jonjohnsonjr about tektoncd#216 I wanted to show him an example of a Pipeline wherein there are Tasks that output Images Resources, which are then used as inputs for subsequent Tasks. Our examples Pipelines were meant to do that, but unfortunately when I looked at them, I realized these were not actually hooked up properly. The Tasks were not actually using the Images that were built by previous Tasks, so I have updated them to do that. I also discovered that the templating was incorrect (#108 - adding tests for these examples - and tektoncd#212 - making sure templated variables are actually used - can't come quickly enough!) so I've updated that in the examples as well.
While talking with @jonjohnsonjr about tektoncd#216 I wanted to show him an example of a Pipeline wherein there are Tasks that output Images Resources, which are then used as inputs for subsequent Tasks. Our examples Pipelines were meant to do that, but unfortunately when I looked at them, I realized these were not actually hooked up properly. The Tasks were not actually using the Images that were built by previous Tasks, so I have updated them to do that. I also discovered that the templating was incorrect (#108 - adding tests for these examples - and tektoncd#212 - making sure templated variables are actually used - can't come quickly enough!) so I've updated that in the examples as well.
While talking with @jonjohnsonjr about tektoncd#216 I wanted to show him an example of a Pipeline wherein there are Tasks that output Images Resources, which are then used as inputs for subsequent Tasks. Our examples Pipelines were meant to do that, but unfortunately when I looked at them, I realized these were not actually hooked up properly. The Tasks were not actually using the Images that were built by previous Tasks, so I have updated them to do that. I also discovered that the templating was incorrect (#108 - adding tests for these examples - and tektoncd#212 - making sure templated variables are actually used - can't come quickly enough!) so I've updated that in the examples as well.
While talking with @jonjohnsonjr about #216 I wanted to show him an example of a Pipeline wherein there are Tasks that output Images Resources, which are then used as inputs for subsequent Tasks. Our examples Pipelines were meant to do that, but unfortunately when I looked at them, I realized these were not actually hooked up properly. The Tasks were not actually using the Images that were built by previous Tasks, so I have updated them to do that. I also discovered that the templating was incorrect (#108 - adding tests for these examples - and #212 - making sure templated variables are actually used - can't come quickly enough!) so I've updated that in the examples as well.
@tanner-bruce - just checking if you're still going to open that PR - I'm trying to find a small chunk of work to use as my first code contribution and wanna make sure this isn't a good option. =) |
/assign @tanner-bruce as you didn't open a PR and it staled I took a bit at it 👼 |
Expected Behavior
A
Task
would fail validation if it tries to define aBuildSpec
that has variables which would not be interpolated due to missing inputs or outputs. Having this error on validation would shorten the loop when trying to write aPipeline
as errors with Tasks would be caught much sooner.Actual Behavior
The
Task
will create theBuild
with the uninterpolated variableSteps to Reproduce the Problem
${inputs.params.thisdoesnotexist}
to part of aBuildSpec
The text was updated successfully, but these errors were encountered: