-
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.
Losslessly roundtrip Pipelines with Finally from beta to alpha and back
Prior to this commit pipelines returned an error when converting from a v1beta1 pipeline to a v1alpha1 pipeline if that pipeline had a Finally section in it. As a result of this error the kubeapi would repeatedly request v1alpha1 pipelines every second, filling up our webhook logs with these errors. This commit allows Finally to be serialized into alpha Pipelines, keeping the Finally Tasks as an annotation on the resource. If the alpha Pipeline is then re-applied to the cluster the Finally annotation is rehydrated into the Finally section of the stored v1beta1 resource.
- Loading branch information
1 parent
bd94b4d
commit 3ea5981
Showing
5 changed files
with
49 additions
and
24 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
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