Skip to content

Commit 575c15d

Browse files
clientprofile: update Ceph CSI config entry with cephFS.RadosNamespace
Signed-off-by: Praveen M <m.praveen@ibm.com>
1 parent 0310e95 commit 575c15d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/controller/clientprofile_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ type csiClusterInfoRecord struct {
6969
SubvolumeGroup string `json:"subvolumeGroup,omitempty"`
7070
KernelMountOptions string `json:"kernelMountOptions"`
7171
FuseMountOptions string `json:"fuseMountOptions"`
72+
RadosNamespace string `json:"radosNamespace,omitempty"`
7273
} `json:"cephFS,omitempty"`
7374
Rbd struct {
7475
RadosNamespace string `json:"radosNamespace,omitempty"`
@@ -313,6 +314,7 @@ func composeCsiClusterInfoRecord(clientProfile *csiv1a1.ClientProfile, cephConn
313314
record.Monitors = cephConn.Spec.Monitors
314315
if cephFs := clientProfile.Spec.CephFs; cephFs != nil {
315316
record.CephFs.SubvolumeGroup = cephFs.SubVolumeGroup
317+
record.CephFs.RadosNamespace = cephFs.RadosNamespace
316318
if mountOpt := cephFs.KernelMountOptions; mountOpt != nil {
317319
record.CephFs.KernelMountOptions = utils.MapToString(mountOpt, "=", ",")
318320
}

0 commit comments

Comments
 (0)