forked from argoproj/argo-rollouts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feature: introduce rollback windows fixes: argoproj#574 Signed-off-by: Alex Eftimie <[email protected]> * feature: introduce rollback windows - generated files fixes: argoproj#574 Signed-off-by: Alex Eftimie <[email protected]> * ran codegen again Signed-off-by: Alex Eftimie <[email protected]> * More unit tests. New e2e Signed-off-by: Alex Eftimie <[email protected]> * More tests to make codecov happy Signed-off-by: Alex Eftimie <[email protected]> * increas lint timeout Signed-off-by: Alex Eftimie <[email protected]> * Exclude Experiment RS when computing rollback window Signed-off-by: Alex Eftimie <[email protected]> * Add documentation around new feature rollbackWindow Signed-off-by: Alex Eftimie <[email protected]> * Fix rollback window; cancel pauses and abort and skip to the end of analysis when the window is detected Signed-off-by: Alex Eftimie <[email protected]> Signed-off-by: Alex Eftimie <[email protected]>
- Loading branch information
1 parent
0b40249
commit 70a24bd
Showing
21 changed files
with
1,244 additions
and
513 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Rollback Windows | ||
|
||
!!! important | ||
|
||
Available for blue-green and canary rollouts since v1.4 | ||
|
||
By default, when an older Rollout manifest is re-applied, the controller treats it the same as a spec change, and will execute the full list of steps, and perform analysis too. There are two exceptions to this rule: | ||
1. the controller detects if it is moving back to a blue-green ReplicaSet which exists and is still scaled up (within its `scaleDownDelay`) | ||
2. the controller detects it is moving back to the canary's "stable" ReplicaSet, and the upgrade had not yet completed. | ||
|
||
It is often undesirable to re-run analysis and steps for a rollout, when the desired behavior is to rollback as soon as possible. To help with this, a rollback window feature allows users to indicate that the promotion to the ReplicaSet within the window will skip all steps. | ||
|
||
Example: | ||
|
||
```yaml | ||
spec: | ||
rollbackWindow: | ||
revisions: 3 | ||
|
||
revisionHistoryLimit: 5 | ||
``` | ||
Assume a linear revision history: `1`, `2`, `3`, `4`, `5 (current)`. A rollback from revision 5 back to 4 or 3 will fall within the window, so it will be fast tracked. |
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.