Skip to content

Commit

Permalink
chore: Removed name length limit for config template (#7915)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4f4265f)
  • Loading branch information
sophon-zt committed Aug 2, 2024
1 parent 718ff84 commit a352c2c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions apis/apps/v1alpha1/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,13 @@ 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"`

// Specifies the namespace of the referenced configuration template ConfigMap object.
// 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"`
Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,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:
Expand All @@ -237,7 +236,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:
Expand Down
4 changes: 0 additions & 4 deletions config/crd/bases/apps.kubeblocks.io_configurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -305,7 +303,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:
Expand All @@ -320,7 +317,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:
Expand Down
2 changes: 0 additions & 2 deletions deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,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:
Expand All @@ -237,7 +236,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:
Expand Down
4 changes: 0 additions & 4 deletions deploy/helm/crds/apps.kubeblocks.io_configurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -305,7 +303,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:
Expand All @@ -320,7 +317,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:
Expand Down

0 comments on commit a352c2c

Please sign in to comment.