Skip to content

Commit

Permalink
fix default value 0 is a string type
Browse files Browse the repository at this point in the history
Signed-off-by: haoqing0110 <qhao@redhat.com>
  • Loading branch information
haoqing0110 committed Nov 27, 2023
1 parent 8814013 commit ec99db5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ spec:
anyOf:
- type: integer
- type: string
default: "0"
default: 0
description: MaxFailures is a percentage or number
of clusters in the current rollout that can fail
before proceeding to the next rollout. MaxFailures
Expand Down Expand Up @@ -249,7 +249,7 @@ spec:
anyOf:
- type: integer
- type: string
default: "0"
default: 0
description: MaxFailures is a percentage or number
of clusters in the current rollout that can fail
before proceeding to the next rollout. MaxFailures
Expand Down Expand Up @@ -335,7 +335,7 @@ spec:
anyOf:
- type: integer
- type: string
default: "0"
default: 0
description: MaxFailures is a percentage or number
of clusters in the current rollout that can fail
before proceeding to the next rollout. MaxFailures
Expand Down
2 changes: 1 addition & 1 deletion cluster/v1alpha1/types_rolloutstrategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type RolloutConfig struct {
// Default is that no failures are tolerated.
// +kubebuilder:validation:Pattern="^((100|[0-9]{1,2})%|[0-9]+)$"
// +kubebuilder:validation:XIntOrString
// +kubebuilder:default="0"
// +kubebuilder:default=0
// +optional
MaxFailures intstr.IntOrString `json:"maxFailures,omitempty"`
// Timeout defines how long the workload applier controller will wait until the workload reaches a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ spec:
anyOf:
- type: integer
- type: string
default: "0"
default: 0
description: MaxFailures is a percentage or number of
clusters in the current rollout that can fail before
proceeding to the next rollout. MaxFailures is only
Expand Down Expand Up @@ -435,7 +435,7 @@ spec:
anyOf:
- type: integer
- type: string
default: "0"
default: 0
description: MaxFailures is a percentage or number of
clusters in the current rollout that can fail before
proceeding to the next rollout. MaxFailures is only
Expand Down Expand Up @@ -519,7 +519,7 @@ spec:
anyOf:
- type: integer
- type: string
default: "0"
default: 0
description: MaxFailures is a percentage or number of
clusters in the current rollout that can fail before
proceeding to the next rollout. MaxFailures is only
Expand Down

0 comments on commit ec99db5

Please sign in to comment.