Skip to content

Commit

Permalink
Add autoPromotionEnabled with no behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
dthomson25 committed Jun 12, 2019
1 parent de8cc09 commit aa4bb1d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/crds/rollout-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ spec:
description: Name of the service that the rollout modifies as
the active service.
type: string
autoPromotionEnabled:
description: AutoPromotionEnabled indicates if the rollout should
automatically promote the new ReplicaSet to the active service
or enter a paused state. If not specified, the default value
is true.
type: boolean
autoPromotionSeconds:
description: AutoPromotionSeconds automatically promotes the
current ReplicaSet to active after the specified pause delay
Expand Down
6 changes: 6 additions & 0 deletions manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ spec:
description: Name of the service that the rollout modifies as
the active service.
type: string
autoPromotionEnabled:
description: AutoPromotionEnabled indicates if the rollout should
automatically promote the new ReplicaSet to the active service
or enter a paused state. If not specified, the default value
is true.
type: boolean
autoPromotionSeconds:
description: AutoPromotionSeconds automatically promotes the
current ReplicaSet to active after the specified pause delay
Expand Down
6 changes: 6 additions & 0 deletions manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ spec:
description: Name of the service that the rollout modifies as
the active service.
type: string
autoPromotionEnabled:
description: AutoPromotionEnabled indicates if the rollout should
automatically promote the new ReplicaSet to the active service
or enter a paused state. If not specified, the default value
is true.
type: boolean
autoPromotionSeconds:
description: AutoPromotionSeconds automatically promotes the
current ReplicaSet to active after the specified pause delay
Expand Down
7 changes: 7 additions & 0 deletions pkg/apis/rollouts/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pkg/apis/rollouts/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ type BlueGreenStrategy struct {
// resumed the new replicaset will be full scaled up before the switch occurs
// +optional
PreviewReplicaCount *int32 `json:"previewReplicaCount,omitempty"`
// AutoPromotionEnabled indicates if the rollout should automatically promote the new ReplicaSet
// to the active service or enter a paused state. If not specified, the default value is true.
// +optional
AutoPromotionEnabled *bool `json:"autoPromotionEnabled,omitempty"`
// AutoPromotionSeconds automatically promotes the current ReplicaSet to active after the
// specified pause delay in seconds after the ReplicaSet becomes ready.
// If omitted, the Rollout enters and remains in a paused state until manually resumed by
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/rollouts/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa4bb1d

Please sign in to comment.