Skip to content

Commit

Permalink
api: add radosNamespace field to CephFsConfigSpec
Browse files Browse the repository at this point in the history
Ceph-CSI now supports storing CephFS OMAP data in a
specified namespace defined in CephFS.radosNamespace
field in ceph-csi-config ConfigMap.
ref: ceph/ceph-csi#4661.

This commit introduces the same by adding the radosNamespace field
to the ClientProfile.ClientProfileSpec.CephFsConfigSpec API.

Signed-off-by: Praveen M <[email protected]>
  • Loading branch information
iPraveenParihar committed Nov 5, 2024
1 parent fb4af2c commit ca4476d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1alpha1/clientprofile_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ type CephFsConfigSpec struct {

//+kubebuilder:validation:Optional
FuseMountOptions map[string]string `json:"fuseMountOptions,omitempty"`

//+kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
//+kubebuilder:validation:Optional
RadosNamespace string `json:"radosNamespace,omitempty"`
}

// RbdConfigSpec defines the desired RBD configuration
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/csi.ceph.io_clientprofiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ spec:
additionalProperties:
type: string
type: object
radosNamespace:
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
subVolumeGroup:
type: string
type: object
Expand Down
5 changes: 5 additions & 0 deletions deploy/all-in-one/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ spec:
additionalProperties:
type: string
type: object
radosNamespace:
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
subVolumeGroup:
type: string
type: object
Expand Down
5 changes: 5 additions & 0 deletions deploy/multifile/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ spec:
additionalProperties:
type: string
type: object
radosNamespace:
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
subVolumeGroup:
type: string
type: object
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca4476d

Please sign in to comment.