mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Merge pull request #119395 from carlory/patch-expand-001
getPersistentVolume remove reduant deep copy
This commit is contained in:
commit
9e34bac02a
@ -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 New Issue
Block a user