-
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.
Disable implicit param behavior for Pipeline objects.
We recently received feedback that the implicit param behavior implementation was not quite implemented as expected in the TEP - primarily, that the implicit behavior modifying Pipelines on admission was unexpected. As a short term measure, this change disables the implicit behavior for Pipelines, but keeps the PipelineRun and TaskRun behavior in place. This is implemented by introducing a new context variable, similar to the existing Alpha context behavior, that is only enabled on PipelineRun/TaskRun reconcile. This allows for minimially invasive changes while giving us the flexibility to revert this behavior or enable in other contexts such as during reconcile. On top of this: - Moves implicit param tests to their own file, adds test for Pipeline to cover the behavior in question. - Fixes bug with param context key using var struct{} instead of type struct{} -> using var associates the value to any key of struct{}, whereas type struct{} creates a new type that can be used by only that key. There's no indication that this was causing problems before.
- Loading branch information
Showing
9 changed files
with
533 additions
and
271 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.