mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-05 19:49:28 +00:00
cephfs: remove extraneous creation of credentials
`ControllerExpandVolume` creates the credentials from secrets but never actually uses it for anything. The secrets map is passed on to `NewVolumeOptionsFromVolID` which does the same check again. This patch removes the extraneous step. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
This commit is contained in:
parent
b6031dad48
commit
2801f153d2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user