Closed QuanZhang-William closed 8 months ago
/cc @jerop. This is the preview for the TEP update.
@QuanZhang-William thanks for the quick turnaround -- please move the existing approach to the alternatives with an explanation for why we chose another path, just so that we have a record for future reference
Thanks, Jerop! Alternatives added.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: afrittoli, jerop, vdemeester
The full list of commands accepted by this bot can be found here.
The pull request process is described here
As discussed in the API WG, this already has enough approvals, so merging it. /lgtm
Prior to this commit, Tekton validates the intersection of the enums that are both specified at
Pipeline
level and at the referencedPipelineTask
level. In this solution, users are burdened with calculating intersections by iterating through all the PipelineTasks.This commits add an extra validation to require that the pipeline-level enum must be a subset of the corresponding pipeline-task level enum. With this approach, users only need to check the pipeline-level enum to execute the pipeline successfully.
/kind tep