From e90aa486a9a8fee059f9ec37f346db53422c94c3 Mon Sep 17 00:00:00 2001 From: Riya Singhal Date: Tue, 12 Dec 2023 16:50:39 +0530 Subject: [PATCH] cephfs: fix network fencing admin id this commit replaces user id requirement with admin id Signed-off-by: Riya Singhal --- internal/csi-addons/cephfs/network_fence.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/csi-addons/cephfs/network_fence.go b/internal/csi-addons/cephfs/network_fence.go index c4008339281..9ae22c8d4ba 100644 --- a/internal/csi-addons/cephfs/network_fence.go +++ b/internal/csi-addons/cephfs/network_fence.go @@ -71,7 +71,7 @@ func (fcs *FenceControllerServer) FenceClusterNetwork( return nil, status.Error(codes.InvalidArgument, err.Error()) } - cr, err := util.NewUserCredentials(req.GetSecrets()) + cr, err := util.NewAdminCredentials(req.GetSecrets()) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } @@ -100,7 +100,7 @@ func (fcs *FenceControllerServer) UnfenceClusterNetwork( return nil, status.Error(codes.InvalidArgument, err.Error()) } - cr, err := util.NewUserCredentials(req.GetSecrets()) + cr, err := util.NewAdminCredentials(req.GetSecrets()) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) }