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 <josh@hoblitt.com>
This commit is contained in:
1 parent
d12cd1a4b3
commit
23f4f50bdb
2 files changed
-3
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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{}
|
||||
|
||||
Reference in new issue
Block a user