From ec99db528465566dfa70ff4e3903e0b9cae6ce4b Mon Sep 17 00:00:00 2001 From: haoqing0110 Date: Mon, 27 Nov 2023 07:35:30 +0000 Subject: [PATCH] fix default value 0 is a string type Signed-off-by: haoqing0110 --- ...n-cluster-management.io_clustermanagementaddons.crd.yaml | 6 +++--- cluster/v1alpha1/types_rolloutstrategy.go | 2 +- ...n-cluster-management.io_manifestworkreplicasets.crd.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml b/addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml index e08074e70..9f2cc65ec 100644 --- a/addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml +++ b/addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml @@ -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 @@ -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 @@ -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 diff --git a/cluster/v1alpha1/types_rolloutstrategy.go b/cluster/v1alpha1/types_rolloutstrategy.go index 4fbe6524a..a887ffc3d 100644 --- a/cluster/v1alpha1/types_rolloutstrategy.go +++ b/cluster/v1alpha1/types_rolloutstrategy.go @@ -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 diff --git a/work/v1alpha1/0000_00_work.open-cluster-management.io_manifestworkreplicasets.crd.yaml b/work/v1alpha1/0000_00_work.open-cluster-management.io_manifestworkreplicasets.crd.yaml index c5a083042..938832f75 100644 --- a/work/v1alpha1/0000_00_work.open-cluster-management.io_manifestworkreplicasets.crd.yaml +++ b/work/v1alpha1/0000_00_work.open-cluster-management.io_manifestworkreplicasets.crd.yaml @@ -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 @@ -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 @@ -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