Skip to content

Commit 6b34838

Browse files
driver: only apply default cephFSClientType when unset
Fix a bug where `driver.cephFSClientType` was always overwritten by the default value from `OperatorConfig`. The field is now populated from defaults only if it is not already set in the driver spec. Fixes: ceph#337 Signed-off-by: Niraj Yadav <niryadav@redhat.com>
1 parent ca37138 commit 6b34838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/driver_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ func mergeDriverSpecs(dest, src *csiv1.DriverSpec) {
18491849
if dest.FuseMountOptions == nil {
18501850
dest.FuseMountOptions = src.FuseMountOptions
18511851
}
1852-
if src.CephFsClientType != "" {
1852+
if dest.CephFsClientType == "" {
18531853
dest.CephFsClientType = src.CephFsClientType
18541854
}
18551855
}

0 commit comments

Comments
 (0)