-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Expected Behavior
We should write down all the places that a variable can be substituted in our CRDs.
Actual Behavior
It's a bit hit-or-miss; we demonstrate some places to substitute in this section: https://github.com/tektoncd/pipeline/blob/master/docs/tasks.md#using-variable-substitution but it doesn't look like we document all of the possible locations that are supported.
Proposal
My suggestion would be to update docs/variables.md with a table of all locations in our CRDs where variables will be successfully interpolated into.
Here are a couple places in our code where we perform substitutions:
So documenting the locations would just require reading the various funcs called from these spots and recording all the fields that get modified. Not entirely sure if these are the only places that we apply replacements from though.