From 379880feb4a122fd6835b8a94297073785cb4cc0 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Fri, 30 Jun 2023 18:25:14 +0800 Subject: [PATCH] update the bootstrap SQL supported version (#5113) Co-authored-by: fgksgf --- docs/api-references/docs.md | 2 +- pkg/apis/pingcap/v1alpha1/openapi_generated.go | 2 +- pkg/apis/pingcap/v1alpha1/types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api-references/docs.md b/docs/api-references/docs.md index c40beda71c..c436b8ef2c 100644 --- a/docs/api-references/docs.md +++ b/docs/api-references/docs.md @@ -16898,7 +16898,7 @@ string

BootstrapSQLConfigMapName is the name of the ConfigMap which contains the bootstrap SQL file with the key bootstrap-sql, which will only be executed when a TiDB cluster bootstrap on the first time. The field should be set ONLY when create a TC, since it only take effect on the first time bootstrap. -Only v6.6.0+ supports this feature.

+Only v6.5.1+ supports this feature.

diff --git a/pkg/apis/pingcap/v1alpha1/openapi_generated.go b/pkg/apis/pingcap/v1alpha1/openapi_generated.go index c2a6874ac5..591291a196 100644 --- a/pkg/apis/pingcap/v1alpha1/openapi_generated.go +++ b/pkg/apis/pingcap/v1alpha1/openapi_generated.go @@ -9485,7 +9485,7 @@ func schema_pkg_apis_pingcap_v1alpha1_TiDBSpec(ref common.ReferenceCallback) com }, "bootstrapSQLConfigMapName": { SchemaProps: spec.SchemaProps{ - Description: "BootstrapSQLConfigMapName is the name of the ConfigMap which contains the bootstrap SQL file with the key `bootstrap-sql`, which will only be executed when a TiDB cluster bootstrap on the first time. The field should be set ONLY when create a TC, since it only take effect on the first time bootstrap. Only v6.6.0+ supports this feature.", + Description: "BootstrapSQLConfigMapName is the name of the ConfigMap which contains the bootstrap SQL file with the key `bootstrap-sql`, which will only be executed when a TiDB cluster bootstrap on the first time. The field should be set ONLY when create a TC, since it only take effect on the first time bootstrap. Only v6.5.1+ supports this feature.", Type: []string{"string"}, Format: "", }, diff --git a/pkg/apis/pingcap/v1alpha1/types.go b/pkg/apis/pingcap/v1alpha1/types.go index 208aa5b1ac..613d996190 100644 --- a/pkg/apis/pingcap/v1alpha1/types.go +++ b/pkg/apis/pingcap/v1alpha1/types.go @@ -922,7 +922,7 @@ type TiDBSpec struct { // BootstrapSQLConfigMapName is the name of the ConfigMap which contains the bootstrap SQL file with the key `bootstrap-sql`, // which will only be executed when a TiDB cluster bootstrap on the first time. // The field should be set ONLY when create a TC, since it only take effect on the first time bootstrap. - // Only v6.6.0+ supports this feature. + // Only v6.5.1+ supports this feature. // +optional BootstrapSQLConfigMapName *string `json:"bootstrapSQLConfigMapName,omitempty"` }