All params value fields (e.g. pipelinerun, taskrun, pipelineresource) should support valueFrom similar to container env support -- see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#envvar-v1-core and https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#envvarsource-v1-core
To start with we should support configMapKeyRef and secretKeyRef to avoid having to add extra fields like secrets to some of our PipelineResources and to let us parameterize PipelineResources from a PipelineRun.
Sounds reasonable to me! @skaegi any chance you could provide an example of what this syntax would look like?
Yes and I'm also signing up for doing this.
/assign
I started to look at this closer. The question to answer is how the data should be reflected back.
If one uses a Value, its just as its done today.
valueFrom hence the question above regarding env vars vs volumes.Ha! @fraenkel !!!
I'm totally not answering your question but...
We might also want to figure out how to support "fieldref" https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#envvarsource-v1-core
I've had a couple of cases where I wanted the metadata.name to be injected via param
I think in retrospect this might be a mis-feature. I've yet to have a case where I can't get at the data I need every bit as cleanly in an individual step using env or by 'volume/volumeMount' and a param for reference name.
Ok. So my statement above still holds so closing.
Most helpful comment
Yes and I'm also signing up for doing this.