-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(lifecycle-operator): introduce separate controller for removing scheduling gates from pods #2946
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2946 +/- ##
===========================================
+ Coverage 52.85% 85.77% +32.92%
===========================================
Files 22 162 +140
Lines 1771 10351 +8580
===========================================
+ Hits 936 8879 +7943
- Misses 740 1184 +444
- Partials 95 288 +193
... and 147 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Charles-Edouard Brétéché <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Charles-Edouard Brétéché <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
…nsistent with KeptnWorkload Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
… changes of related pod Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
…2927) Signed-off-by: RealAnna <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Charles-Edouard Brétéché <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: RealAnna <[email protected]> Signed-off-by: RealAnna <[email protected]> Co-authored-by: Florian Bacher <[email protected]> Co-authored-by: Meg McRoberts <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
…n#2915) Signed-off-by: Florian Bacher <[email protected]> Signed-off-by: check-spelling-bot <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]> Co-authored-by: Meg McRoberts <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Meg McRoberts <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: RealAnna <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
) Signed-off-by: Meg McRoberts <[email protected]> Co-authored-by: odubajDT <[email protected]> Co-authored-by: Florian Bacher <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]> Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
…e for re-reconciliation Signed-off-by: Florian Bacher <[email protected]>
…sion Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
…keptn#2932) Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
fadbd2e
to
4b65576
Compare
Signed-off-by: Florian Bacher <[email protected]>
would it make sense to recreate the issue with a kuttl/chainsaw test? having a deployment annotated for keptn with a simple pre task. After it passes delete the pod and check 1- it gets gated 2- the gate is removed? |
Signed-off-by: Florian Bacher <[email protected]>
test/chainsaw/scheduling-gates/simple-deployment-restart-pod/00-install.yaml
Dismissed
Show dismissed
Hide dismissed
test/chainsaw/scheduling-gates/simple-deployment-restart-pod/00-install.yaml
Dismissed
Show dismissed
Hide dismissed
test/chainsaw/scheduling-gates/simple-deployment-restart-pod/00-install.yaml
Dismissed
Show dismissed
Hide dismissed
Signed-off-by: Florian Bacher <[email protected]>
test/chainsaw/scheduling-gates/simple-deployment-restart-pod/chainsaw-test.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Florian Bacher <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left small comment, but leaving it up to you :)
Signed-off-by: Florian Bacher <[email protected]>
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
…cheduling gates from pods (keptn#2946) Signed-off-by: Charles-Edouard Brétéché <[email protected]> Signed-off-by: Florian Bacher <[email protected]> Signed-off-by: RealAnna <[email protected]> Signed-off-by: RealAnna <[email protected]> Signed-off-by: check-spelling-bot <[email protected]> Signed-off-by: Meg McRoberts <[email protected]> Signed-off-by: Moritz Wiesinger <[email protected]> Co-authored-by: Charles-Edouard Brétéché <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]> Co-authored-by: RealAnna <[email protected]> Co-authored-by: Meg McRoberts <[email protected]> Co-authored-by: odubajDT <[email protected]> Signed-off-by: shivam <[email protected]>
…cheduling gates from pods (keptn#2946) Signed-off-by: Charles-Edouard Brétéché <[email protected]> Signed-off-by: Florian Bacher <[email protected]> Signed-off-by: RealAnna <[email protected]> Signed-off-by: RealAnna <[email protected]> Signed-off-by: check-spelling-bot <[email protected]> Signed-off-by: Meg McRoberts <[email protected]> Signed-off-by: Moritz Wiesinger <[email protected]> Co-authored-by: Charles-Edouard Brétéché <[email protected]> Co-authored-by: Moritz Wiesinger <[email protected]> Co-authored-by: RealAnna <[email protected]> Co-authored-by: Meg McRoberts <[email protected]> Co-authored-by: odubajDT <[email protected]> Signed-off-by: vickysomtee <[email protected]>
Closes #2937
This PR introduces a dedicated controller that takes care of removing the scheduling gates of a pod for which there is a related KeptnWorkloadVersion that has passed the pre deployment phase.
This might be the more robust solution, as opposed to the one proposed in the issue description, as checking for completed KeptnWorkloadVersions for a pod in the mutating webhook might lead to some timing issues (e.g. when a KeptnWorkload is finished during the timeframe between adding the scheduling gate in the webhook and the completion of the webhook where the scheduling gate is actually applied).
Note that for pods where the checks of the related KeptnWorkloadVersion have already passed, the controller will just remove the scheduling gate from the pods - pre/post deployment tasks which have already been executed for the WorkloadVersion will not be executed again