From 23f4f50bdb005d954db197ab6e230a97b2cd7f72 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Thu, 11 Jun 2026 15:44:18 -0700 Subject: [PATCH] csi: remove unused NFSDriverName variable NFSDriverName was assigned once in the CSI controller reconcile but never read anywhere in the repo (verified with repo-wide grep and an exported-symbol audit). Remove the variable, its assignment, and the nfsDriverSuffix const that only existed to feed it. Signed-off-by: Joshua Hoblitt --- pkg/operator/ceph/csi/config.go | 2 -- pkg/operator/ceph/csi/controller.go | 1 - 2 files changed, 3 deletions(-) diff --git a/pkg/operator/ceph/csi/config.go b/pkg/operator/ceph/csi/config.go index c2659d20e..8b5857566 100644 --- a/pkg/operator/ceph/csi/config.go +++ b/pkg/operator/ceph/csi/config.go @@ -36,7 +36,6 @@ import ( var ( CephFSDriverName string - NFSDriverName string RBDDriverName string ConfigName = "rook-ceph-csi-config" @@ -50,7 +49,6 @@ const ( rbdDriverSuffix = "rbd.csi.ceph.com" cephFSDriverSuffix = "cephfs.csi.ceph.com" - nfsDriverSuffix = "nfs.csi.ceph.com" ) func CreateUpdateClientProfileRadosNamespace(ctx context.Context, c client.Client, clusterInfo *cephclient.ClusterInfo, cephBlockPoolRadosNamespaceName, clusterID string) error { diff --git a/pkg/operator/ceph/csi/controller.go b/pkg/operator/ceph/csi/controller.go index b875fc8e9..e15ed5836 100644 --- a/pkg/operator/ceph/csi/controller.go +++ b/pkg/operator/ceph/csi/controller.go @@ -164,7 +164,6 @@ func (r *ReconcileCSI) reconcile(request reconcile.Request) (reconcile.Result, e driverPrefix := fmt.Sprintf("%s.", r.opConfig.OperatorNamespace) CephFSDriverName = driverPrefix + cephFSDriverSuffix RBDDriverName = driverPrefix + rbdDriverSuffix - NFSDriverName = driverPrefix + nfsDriverSuffix // See if there is a CephCluster cephClusters := &cephv1.CephClusterList{}