-
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
Inconsistency with how we use and parameterize a taskRef #1185
Comments
This has been bothering me for a while now 😭 It is doubly bad b/c I'm pretty sure I did it.... |
I would also love to write params to disk somehow under /workspace/inputs/params for full consistency. |
@dlorenc what would be the benefit to write them to disk instead of passing via environment variable ? And then we are back to variable substitation and all-as-environment variables discussion 👼 (https://docs.google.com/document/d/1h_3vSApIsuiwGkrqSiegi4NVaYG4oVzBquGAhIN6qGM/edit#heading=h.api53thmnjwo) |
I meant in addition to that method. If we ever want tasks to be able to output parameters, then files would probably make sense for that, and then this would be consistent. |
One way of doing this in a backwards compatible way is to do this via the mutating webhook. |
@skaegi do you still want to pursue this or should we close it out? |
As of today (#1651), spec:
params:
# params here
resources:
inputs:
# inputs resources here
outputs:
# outputs resource here I feel that, to close this issue, |
I agree @vdemeester let's do the same for TaskRun! |
With tektoncd#1185 we resolved a lot of confusion and inconsistency around how we nested things with input/output, but we didn't update our developer docs :( In tektoncd#2319 we pointed someone toward these docs and the person ended up using the old syntax and being confused :(
In a Pipeline and PipelineRun we reference
params
,resources.inputs
, andresources.outputs
. In a Task and TaskRun we reference the same variables asinputs.params
,inputs.resources
,outputs.resources
. This is a bit confusing and inconsistent. If we want to make a change here we better get going quick...If we were to make a change here (and recognizing that it would be breaking) I would just want to use
params
,inputs
, andoutputs
. e.g. pullparams
up as a child of theTask
spec and makeinputs
andoutputs
an array ofPipelineResources
.For example...
The text was updated successfully, but these errors were encountered: