mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
getPersistentVolume remove reduant deep copy
This commit is contained in:
parent
9946ea9fd8
commit
ad0b671b56
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue