diff --git a/internal/cephfs/controllerserver.go b/internal/cephfs/controllerserver.go index f41537b57..1ab1ff4fc 100644 --- a/internal/cephfs/controllerserver.go +++ b/internal/cephfs/controllerserver.go @@ -717,12 +717,6 @@ func (cs *ControllerServer) ControllerExpandVolume( } defer cs.OperationLocks.ReleaseExpandLock(volID) - cr, err := util.NewAdminCredentials(secret) - if err != nil { - return nil, status.Error(codes.InvalidArgument, err.Error()) - } - defer cr.DeleteCredentials() - volOptions, volIdentifier, err := store.NewVolumeOptionsFromVolID(ctx, volID, nil, secret, cs.ClusterName, cs.SetMetadata) if err != nil {