Details
Description
If possible, we need to check that Volumes are actually being resized before marking them as 'expanding'. Otherwise the operator will continually attempt to upgrade the associated Pod (which is yet another unexpected side effect).
Given this occurred with Local Volumes where expansion isn't even possible we might need to add a param to disable resizing.
from pod_util.go:
// Even when the annotations of existingSpec and required spec are the same,
|
// it is possible that the requested storage capacity is not yet applied either
|
// due to expansion being in progress, or user manually changing pvc request.
|
actualSize := pvc.Status.Capacity[v1.ResourceStorage]
|
requestedSize := pvc.Spec.Resources.Requests[v1.ResourceStorage]
|