pub fn is_pod_resized() -> impl Condition<Pod>Expand description
An await condition for Pod that returns true once an in-place resize operation has completed
A resize is considered complete when every regular container and every restartable init
container has matching resources in its corresponding status (both requests and
limits), and neither PodResizePending nor PodResizeInProgress is present.
Comparing resources prevents an early success before the kubelet creates resize conditions. Requiring resize conditions to be absent prevents success when desired resources are changed back while a resize is still in progress.
Note: if the resize is rejected as Infeasible (e.g. exceeds node capacity),
spec and status will never converge and this condition will never return true.
Always wrap with tokio::time::timeout.
Resource quantities with fractional bytes, such as 0.1Gi, may not converge if the
kubelet rounds the applied value. Avoid fractional byte values when resizing memory.