Closed kivagant-ba closed 1 year ago
fractional bytes specified for memory values are invalid, so those requests/limits are invalid
even though your controller is not modifying those fields, the warning is trying to tell anyone who will listen that the deployment resource requests of the object being updated are malformed and should be fixed.
Interesting... Okay. The thing is that we never set the resource requests and limits in this format, something happened within K8s that converted it to 4402341478400m
. But good to know, thank you anyway.
We have an old code that throws warnings when patching deployments. The code is controversial, but the warning comes from an implementation of
appsclientv1.DeploymentInterface
. The Deployment has several containers, one of them is returned with the resource specificaiton:And the code prints the warning:
The code is complicated, but a simplified piece looks like that: