Merge pull request #119395 from carlory/patch-expand-001

getPersistentVolume remove reduant deep copy
This commit is contained in:
Kubernetes Prow Robot
2024-01-29 05:40:40 -08:00
committed by GitHub

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