Skip to content

Commit

Permalink
Fix Apply* call with ctx
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jun 1, 2022
1 parent 524fe29 commit d763d09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/tekton/pipelinerun.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ func PipelineRunToLLB(ctx context.Context, c client.Client, r PipelineRun) (llb.
}

func applyPipelineRunSubstitution(ctx context.Context, pr *v1beta1.PipelineRun, ps *v1beta1.PipelineSpec, pipelineName string) (v1beta1.PipelineSpec, error) {
ps = resources.ApplyParameters(ps, pr)
ps = resources.ApplyContexts(ps, pipelineName, pr)
ps = resources.ApplyWorkspaces(ps, pr)
ps = resources.ApplyParameters(ctx, ps, pr)
ps = resources.ApplyContexts(ctx, ps, pipelineName, pr)
ps = resources.ApplyWorkspaces(ctx, ps, pr)

if err := ps.Validate(ctx); err != nil {
return *ps, err
Expand Down

0 comments on commit d763d09

Please sign in to comment.