You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#8637
When substituting Params in a StepAction was initially implemented, the
defaults were taken from the `TaskRun.Spec.TaskSpec.Params`. This works
when the Task is defined in place, however if the TaskRun does not
define the Task inline and instead references a remote Task from
`TaskRun.Spec.TaskRef`, then any param defaults failed to be applied.
When `GetStepActionFunc` is called from the TaskRun reconciler, it's
passed a TaskSpec which comes from either the `TaskRun.Spec.TaskSpec` or
a remotely-resolved TaskRef. By checking this TaskSpec for the Param
defaults, instead of `TaskRun.Spec.TaskSpec`, we can ensure the defaults
will always be applied when they're specified
0 commit comments