getPersistentVolume remove reduant deep copy

This commit is contained in:
carlory 2023-07-18 18:55:42 +08:00
parent 9946ea9fd8
commit ad0b671b56

View File

@ -352,7 +352,7 @@ func (expc *expandController) getPersistentVolume(ctx context.Context, pvc *v1.P
return nil, fmt.Errorf("failed to get PV %q: %v", volumeName, err)
}
return pv.DeepCopy(), nil
return pv, nil
}
// isNodeExpandComplete returns true if pvc.Status.Capacity >= pv.Spec.Capacity