Skip to content

Commit

Permalink
fix: allow / in mountPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
abarbare authored and Antoine Barbare committed Feb 3, 2025
1 parent b7b4255 commit 80606a4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ type ResourceMeta struct {
//
// +kubebuilder:validation:Required
// +kubebuilder:validation:MaxLength=256
// +kubebuilder:validation:Pattern:=`^/[a-z]([a-z0-9\-]*[a-z0-9])?$`
// +kubebuilder:validation:Pattern:=`^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$`
MountPoint string `json:"mountPoint"`

// SubPath specifies a path within the volume from which to mount.
Expand Down
8 changes: 4 additions & 4 deletions config/crd/bases/apps.kubeblocks.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22042,7 +22042,7 @@ spec:
description: MountPoint is the filesystem path where
the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced ConfigMap
Expand Down Expand Up @@ -22079,7 +22079,7 @@ spec:
description: MountPoint is the filesystem path where
the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced ConfigMap
Expand Down Expand Up @@ -31278,7 +31278,7 @@ spec:
description: MountPoint is the filesystem path
where the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced
Expand Down Expand Up @@ -31316,7 +31316,7 @@ spec:
description: MountPoint is the filesystem path
where the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced
Expand Down
9 changes: 7 additions & 2 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: manager-config
files:
- files:
- controller_manager_config.yaml
name: manager-config
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: docker.io/apecloud/kubeblocks
8 changes: 4 additions & 4 deletions deploy/helm/crds/apps.kubeblocks.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22042,7 +22042,7 @@ spec:
description: MountPoint is the filesystem path where
the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced ConfigMap
Expand Down Expand Up @@ -22079,7 +22079,7 @@ spec:
description: MountPoint is the filesystem path where
the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced ConfigMap
Expand Down Expand Up @@ -31278,7 +31278,7 @@ spec:
description: MountPoint is the filesystem path
where the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced
Expand Down Expand Up @@ -31316,7 +31316,7 @@ spec:
description: MountPoint is the filesystem path
where the volume will be mounted.
maxLength: 256
pattern: ^/[a-z]([a-z0-9\-]*[a-z0-9])?$
pattern: ^/[a-z]([a-z0-9\-\/]*[a-z0-9])?$
type: string
name:
description: Name is the name of the referenced
Expand Down

0 comments on commit 80606a4

Please sign in to comment.