-
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
When using ${variable} in containerTemplate, it is not working #811
Comments
Interesting - this is actually an enhancement, not a bug, fwiw, since variable templating has to be explicitly enabled for a field. This raises a question though - variable templating can only be done on explicitly specified string fields, which in the case of steps (i.e., |
Yeah, I'm into that! I think it's confusing to only be doing it for a few fields. |
That's definitely doable, for sure. |
Note #982 is expanding the scope of values that can be templated, but not as broadly as we're suggesting here! |
Before, ApplyReplacements() would apply templating replacements to the containers within spec.Steps, but never to the single container at spec.ContainerTemplate. Note that this didn't work earlier because containerTemplate is merged with the container spec after templating is applied. Isolate the container-specific templating in applyContainerReplacements() and apply that logic to the containerTemplate field. This addresses tektoncd#811.
Before, ApplyReplacements() would apply templating replacements to the containers within spec.Steps, but never to the single container at spec.ContainerTemplate. Note that this didn't work earlier because containerTemplate is merged with the container spec after templating is applied. Isolate the container-specific templating in applyContainerReplacements() and apply that logic to the containerTemplate field. This addresses #811.
#1006 is in, this should be fixed 👼 |
@vdemeester: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Expected Behavior
Templating in containerTemplate should work.
Actual Behavior
Templating in containerTemplate is not working.
Steps to Reproduce the Problem
Additional Info
Tekton version v0.3.1
The text was updated successfully, but these errors were encountered: