Skip to content
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

feat: rollback windows. Fixes #574 #2394

Merged
merged 18 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.49.0
args: --timeout 5m
args: --timeout 6m
build:
name: Build
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions manifests/crds/rollout-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ spec:
revisionHistoryLimit:
format: int32
type: integer
rollbackWindow:
properties:
revisions:
format: int32
type: integer
type: object
selector:
properties:
matchExpressions:
Expand Down
6 changes: 6 additions & 0 deletions manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11089,6 +11089,12 @@ spec:
revisionHistoryLimit:
format: int32
type: integer
rollbackWindow:
properties:
revisions:
format: int32
type: integer
type: object
selector:
properties:
matchExpressions:
Expand Down
6 changes: 6 additions & 0 deletions manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11089,6 +11089,12 @@ spec:
revisionHistoryLimit:
format: int32
type: integer
rollbackWindow:
properties:
revisions:
format: int32
type: integer
type: object
selector:
properties:
matchExpressions:
Expand Down
13 changes: 13 additions & 0 deletions pkg/apiclient/rollout/rollout.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,15 @@
"type": "object",
"title": "RequiredDuringSchedulingIgnoredDuringExecution defines inter-pod scheduling rule to be RequiredDuringSchedulingIgnoredDuringExecution"
},
"git.luolix.top.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.RollbackWindowSpec": {
"type": "object",
"properties": {
"revisions": {
"type": "integer",
"format": "int32"
}
}
},
"git.luolix.top.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.Rollout": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1368,6 +1377,10 @@
"format": "int32",
"title": "Minimum number of seconds for which a newly created pod should be ready\nwithout any of its container crashing, for it to be considered available.\nDefaults to 0 (pod will be considered available as soon as it is ready)\n+optional"
},
"rollbackWindow": {
"$ref": "#/definitions/git.luolix.top.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.RollbackWindowSpec",
"title": "The window in which a rollback will be fast tracked (fully promoted)\n+optional"
},
"strategy": {
"$ref": "#/definitions/git.luolix.top.argoproj.argo_rollouts.pkg.apis.rollouts.v1alpha1.RolloutStrategy",
"title": "The deployment strategy to use to replace existing pods with new ones.\n+optional"
Expand Down
Loading