-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate beta features only when v1 Tasks and Pipelines are defined
Currently, validation differs between api versions: when beta features are used in v1 APIs, "enable-api-fields" must be set to "alpha" or "beta", but when beta features are used in beta APIs, "enable-api-fields" may be set to "alpha", "beta", or "stable". We also validate the specs of referenced Tasks or Pipelines in the TaskRun/PipelineRun reconciler. This presents a problem when referencing a Task or Pipeline declared locally, since the Task or Pipeline may be converted into a different API version when it's stored. This commit moves validation for beta features to apply only to Tasks and Pipelines when they are created or updated, and not called when a Task spec or Pipeline spec is validated. This commit will allow us to swap the storage version of our API without user-facing impact. Separately, we plan to decouple feature versioning from API versioning, as it is a better long-term solution. This commit contains no expected functional changes, since the TaskRun and PipelineRun reconcilers do not currently validate that"enable-api-fields" is set to "alpha" or "beta" when beta features are used in referenced Tasks or Pipelines. This validation will be added for v1 remote Tasks and Pipelines in a separate commit.
- Loading branch information
Showing
3 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters