Skip to content

Commit

Permalink
clientprofile: update Ceph CSI config entry with cephFS.RadosNamespace
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen M <[email protected]>
  • Loading branch information
iPraveenParihar committed Nov 5, 2024
1 parent ca4476d commit a7f2919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/clientprofile_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type csiClusterInfoRecord struct {
SubvolumeGroup string `json:"subvolumeGroup,omitempty"`
KernelMountOptions string `json:"kernelMountOptions"`
FuseMountOptions string `json:"fuseMountOptions"`
RadosNamespace string `json:"radosNamespace,omitempty"`
} `json:"cephFS,omitempty"`
Rbd struct {
RadosNamespace string `json:"radosNamespace,omitempty"`
Expand Down Expand Up @@ -313,6 +314,7 @@ func composeCsiClusterInfoRecord(clientProfile *csiv1a1.ClientProfile, cephConn
record.Monitors = cephConn.Spec.Monitors
if cephFs := clientProfile.Spec.CephFs; cephFs != nil {
record.CephFs.SubvolumeGroup = cephFs.SubVolumeGroup
record.CephFs.RadosNamespace = cephFs.RadosNamespace
if mountOpt := cephFs.KernelMountOptions; mountOpt != nil {
record.CephFs.KernelMountOptions = utils.MapToString(mountOpt, "=", ",")
}
Expand Down

0 comments on commit a7f2919

Please sign in to comment.