Skip to content

Commit

Permalink
add failure threshold
Browse files Browse the repository at this point in the history
Signed-off-by: mingzhou.swx <[email protected]>
  • Loading branch information
mingzhou.swx committed Nov 10, 2022
1 parent ec4e74a commit 82179f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
3 changes: 1 addition & 2 deletions api/v1alpha1/batchrelease_plan_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ type ReleasePlan struct {
// RolloutID indicates an id for each rollout progress
RolloutID string `json:"rolloutID,omitempty"`
// FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods.
// Only when both batch FailureThreshold and Canary.FailureThreshold are satisfied, Rollout
// can enter ready state.
// Only when FailureThreshold are satisfied, Rollout can enter ready state.
// If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its
// FailureThreshold.
// Defaults to nil.
Expand Down
3 changes: 1 addition & 2 deletions api/v1alpha1/rollout_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ type CanaryStrategy struct {
// todo current only support one TrafficRouting
TrafficRoutings []*TrafficRouting `json:"trafficRoutings,omitempty"`
// FailureThreshold indicates how many failed pods can be tolerated in all upgraded pods.
// Only when both batch FailureThreshold and Canary.FailureThreshold are satisfied, Rollout
// can enter ready state.
// Only when FailureThreshold are satisfied, Rollout can enter ready state.
// If FailureThreshold is nil, Rollout will use the MaxUnavailable of workload as its
// FailureThreshold.
// Defaults to nil.
Expand Down
9 changes: 4 additions & 5 deletions config/crd/bases/rollouts.kruise.io_batchreleases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ spec:
- type: integer
- type: string
description: FailureThreshold indicates how many failed pods can
be tolerated in all upgraded pods. Only when both batch FailureThreshold
and Canary.FailureThreshold are satisfied, Rollout can enter
ready state. If FailureThreshold is nil, Rollout will use the
MaxUnavailable of workload as its FailureThreshold. Defaults
to nil.
be tolerated in all upgraded pods. Only when FailureThreshold
are satisfied, Rollout can enter ready state. If FailureThreshold
is nil, Rollout will use the MaxUnavailable of workload as its
FailureThreshold. Defaults to nil.
x-kubernetes-int-or-string: true
rolloutID:
description: RolloutID indicates an id for each rollout progress
Expand Down
9 changes: 4 additions & 5 deletions config/crd/bases/rollouts.kruise.io_rollouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ spec:
- type: integer
- type: string
description: FailureThreshold indicates how many failed pods
can be tolerated in all upgraded pods. Only when both batch
FailureThreshold and Canary.FailureThreshold are satisfied,
Rollout can enter ready state. If FailureThreshold is nil,
Rollout will use the MaxUnavailable of workload as its FailureThreshold.
Defaults to nil.
can be tolerated in all upgraded pods. Only when FailureThreshold
are satisfied, Rollout can enter ready state. If FailureThreshold
is nil, Rollout will use the MaxUnavailable of workload
as its FailureThreshold. Defaults to nil.
x-kubernetes-int-or-string: true
steps:
description: Steps define the order of phases to execute release
Expand Down

0 comments on commit 82179f2

Please sign in to comment.