From 4f4265fbf31f450890402c8cd9099e68afe36774 Mon Sep 17 00:00:00 2001 From: zhangtao <111836083+sophon-zt@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:13:12 +0800 Subject: [PATCH] chore: Removed name length limit for config template (#7915) --- apis/apps/v1alpha1/type.go | 2 -- config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml | 2 -- config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml | 2 -- config/crd/bases/apps.kubeblocks.io_configurations.yaml | 4 ---- deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml | 2 -- deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml | 2 -- deploy/helm/crds/apps.kubeblocks.io_configurations.yaml | 4 ---- 7 files changed, 18 deletions(-) diff --git a/apis/apps/v1alpha1/type.go b/apis/apps/v1alpha1/type.go index 69a8589ce94..a1b7db7a83f 100644 --- a/apis/apps/v1alpha1/type.go +++ b/apis/apps/v1alpha1/type.go @@ -90,7 +90,6 @@ type ConfigTemplateExtension struct { // Specifies the name of the referenced configuration template ConfigMap object. // // +kubebuilder:validation:Required - // +kubebuilder:validation:MaxLength=63 // +kubebuilder:validation:Pattern:=`^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$` TemplateRef string `json:"templateRef"` @@ -98,7 +97,6 @@ type ConfigTemplateExtension struct { // An empty namespace is equivalent to the "default" namespace. // // +kubebuilder:default="default" - // +kubebuilder:validation:MaxLength=63 // +kubebuilder:validation:Pattern:=`^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$` // +optional Namespace string `json:"namespace,omitempty"` diff --git a/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml b/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml index c905dd54452..b902ff95ab1 100644 --- a/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml +++ b/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml @@ -301,7 +301,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -316,7 +315,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: diff --git a/config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml b/config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml index 26f7abfb1a1..c714cf2fbfb 100644 --- a/config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml +++ b/config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml @@ -219,7 +219,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -234,7 +233,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: diff --git a/config/crd/bases/apps.kubeblocks.io_configurations.yaml b/config/crd/bases/apps.kubeblocks.io_configurations.yaml index cba96560c73..861788bc31a 100644 --- a/config/crd/bases/apps.kubeblocks.io_configurations.yaml +++ b/config/crd/bases/apps.kubeblocks.io_configurations.yaml @@ -216,7 +216,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -231,7 +230,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: @@ -304,7 +302,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -319,7 +316,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: diff --git a/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml b/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml index c905dd54452..b902ff95ab1 100644 --- a/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml +++ b/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml @@ -301,7 +301,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -316,7 +315,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: diff --git a/deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml b/deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml index 26f7abfb1a1..c714cf2fbfb 100644 --- a/deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml +++ b/deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml @@ -219,7 +219,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -234,7 +233,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: diff --git a/deploy/helm/crds/apps.kubeblocks.io_configurations.yaml b/deploy/helm/crds/apps.kubeblocks.io_configurations.yaml index cba96560c73..861788bc31a 100644 --- a/deploy/helm/crds/apps.kubeblocks.io_configurations.yaml +++ b/deploy/helm/crds/apps.kubeblocks.io_configurations.yaml @@ -216,7 +216,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -231,7 +230,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: @@ -304,7 +302,6 @@ spec: description: |- Specifies the namespace of the referenced configuration template ConfigMap object. An empty namespace is equivalent to the "default" namespace. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$ type: string policy: @@ -319,7 +316,6 @@ spec: templateRef: description: Specifies the name of the referenced configuration template ConfigMap object. - maxLength: 63 pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$ type: string required: