From 62a3b385390a588a3ab1f32ccfb151b96385d729 Mon Sep 17 00:00:00 2001 From: VamsiSiddu-7 <103578883+VamsiSiddu-7@users.noreply.github.com> Date: Mon, 7 Aug 2023 15:40:18 +0530 Subject: [PATCH] add support for RWX and ROX. (#231) --- service/service.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/service/service.go b/service/service.go index 0834bc81..191f8c41 100644 --- a/service/service.go +++ b/service/service.go @@ -1188,7 +1188,6 @@ func (s *service) exportFilesystem(ctx context.Context, req *csi.ControllerPubli otherHostsWithAccess += len(readOnlyRootHosts) if !foundIncompatible { for _, host := range readOnlyRootHosts { - readHostList = append(readHostList, host) if host == hostURL { if am.Mode == csi.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY { foundIdempotent = true @@ -1202,7 +1201,6 @@ func (s *service) exportFilesystem(ctx context.Context, req *csi.ControllerPubli if !foundIncompatible && !foundIdempotent { for _, host := range readWriteRootHosts { - readWriteHostList = append(readWriteHostList, hostURL) if host == hostURL { if am.Mode == csi.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY { foundIncompatible = true