-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VPA admission controller should stop review Pod Update event #1152
Conversation
/cc @bskiba |
It seems reasonable (and desired) since there should not be changes to resources in the updates (at least in the current k8s version). However, I'd like to see this tested, to make sure the changes introduced by VPA admission controller do not get overriden, for example if there are resource request specified in the deployment template. Could you perform such tests and describe outcome here? |
Sure, happy to verify that. Here is my understanding of what should happen, but I will verify that.
|
That's my understanding too. Thanks for taking the time to make sure! |
Here is what I did and attempt to verify:
and
(identical for both new pods) Note that this is running with patched admission controller that only observes CREATE event for pod.
|
@bskiba please see above for my attempt to verify that. I don't know what we can do to put Update back when patching resource request in-place is supported, but I think that is going to be a pretty obvious bug when that happens. |
Thanks! Looks good. We'll be watching pretty closely for the in-place updates of resource requests as we are very keen to use them for our own advantage :) |
…or for AdmissionChecks (kubernetes#1152)
I might be wrong, but it is my understanding that pod Update review has no impact through VPA admission controller. It would be doing work that will have no effect at the end.
There can be a lot of pod updates events, for example, updating pod annotations, and would be creating a lot of unnecessary work. I'd like to propose we remove the review of pod Update.