diff --git a/docs/api-references/docs.html b/docs/api-references/docs.html index 268317ab0f..b9929e8c71 100644 --- a/docs/api-references/docs.html +++ b/docs/api-references/docs.html @@ -7905,8 +7905,8 @@

TiDBSpec (Optional) -

MaxFailoverCount limit the max replicas could be added in failover, 0 means unlimited -Optional: Defaults to 0

+

MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover +Optional: Defaults to 3

@@ -11218,8 +11218,8 @@

TiKVSpec (Optional) -

MaxFailoverCount limit the max replicas could be added in failover, 0 means unlimited -Optional: Defaults to 0

+

MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover +Optional: Defaults to 3

diff --git a/manifests/crd.yaml b/manifests/crd.yaml index 6d0944c621..aa94ef8b83 100644 --- a/manifests/crd.yaml +++ b/manifests/crd.yaml @@ -3903,7 +3903,7 @@ spec: type: object maxFailoverCount: description: 'MaxFailoverCount limit the max replicas could be added - in failover, 0 means unlimited Optional: Defaults to 0' + in failover, 0 means no failover Optional: Defaults to 3' format: int32 type: integer nodeSelector: @@ -5954,7 +5954,7 @@ spec: type: object maxFailoverCount: description: 'MaxFailoverCount limit the max replicas could be added - in failover, 0 means unlimited Optional: Defaults to 0' + in failover, 0 means no failover Optional: Defaults to 3' format: int32 type: integer nodeSelector: diff --git a/pkg/apis/pingcap/v1alpha1/openapi_generated.go b/pkg/apis/pingcap/v1alpha1/openapi_generated.go index 30af9d4d4e..7ed18c4e9d 100644 --- a/pkg/apis/pingcap/v1alpha1/openapi_generated.go +++ b/pkg/apis/pingcap/v1alpha1/openapi_generated.go @@ -3852,7 +3852,7 @@ func schema_pkg_apis_pingcap_v1alpha1_TiDBSpec(ref common.ReferenceCallback) com }, "maxFailoverCount": { SchemaProps: spec.SchemaProps{ - Description: "MaxFailoverCount limit the max replicas could be added in failover, 0 means unlimited Optional: Defaults to 0", + Description: "MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover Optional: Defaults to 3", Type: []string{"integer"}, Format: "int32", }, @@ -5706,7 +5706,7 @@ func schema_pkg_apis_pingcap_v1alpha1_TiKVSpec(ref common.ReferenceCallback) com }, "maxFailoverCount": { SchemaProps: spec.SchemaProps{ - Description: "MaxFailoverCount limit the max replicas could be added in failover, 0 means unlimited Optional: Defaults to 0", + Description: "MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover Optional: Defaults to 3", Type: []string{"integer"}, Format: "int32", }, diff --git a/pkg/apis/pingcap/v1alpha1/types.go b/pkg/apis/pingcap/v1alpha1/types.go index ba5fefcbd2..490a0c8858 100644 --- a/pkg/apis/pingcap/v1alpha1/types.go +++ b/pkg/apis/pingcap/v1alpha1/types.go @@ -257,8 +257,8 @@ type TiKVSpec struct { // +optional Privileged *bool `json:"privileged,omitempty"` - // MaxFailoverCount limit the max replicas could be added in failover, 0 means unlimited - // Optional: Defaults to 0 + // MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover + // Optional: Defaults to 3 // +kubebuilder:validation:Minimum=0 // +optional MaxFailoverCount *int32 `json:"maxFailoverCount,omitempty"` @@ -304,8 +304,8 @@ type TiDBSpec struct { // +optional EnableAdvertiseAddress *bool `json:"enableAdvertiseAddress,omitempty"` - // MaxFailoverCount limit the max replicas could be added in failover, 0 means unlimited - // Optional: Defaults to 0 + // MaxFailoverCount limit the max replicas could be added in failover, 0 means no failover + // Optional: Defaults to 3 // +kubebuilder:validation:Minimum=0 // +optional MaxFailoverCount *int32 `json:"maxFailoverCount,omitempty"`