From 51faa2ad7f218cd317827cc308f714d91db58c60 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 c40083392..9ae22c8d4 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()) }