-
Notifications
You must be signed in to change notification settings - Fork 819
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
validations.agones.dev and mutations.agones.dev don't declare side effects #1891
Comments
Thanks for the report! Just so I am clear, what version of Kubernetes is this an issue on? |
My pleasure! I'm running Kubernetes 1.16. I believe server-side dryrun support was enabled by default in Kubernetes 1.13 |
Got it! And what benefit are we looking to gain here from getting dry-run functionality working? Is this a debugging tool, or something else? Not trying to say we shouldn't make this change, just trying to work through the use case -- exploring all the applicability. Also, is this causing Agones functionality to fail somehow on some platform? What functionality is it stopping not having this set to |
Thanks for looking into this. To add a little more context, dry-run requests are used by |
AAAH! Very interesting! I've not seen kubectl diff! That makes perfect sense. To your original point:
I can't think of any webhooks that do anything other than validate or mutate the AdmissionReview data - so this sounds like it should be fine. A PR would definitely be appreciated! I'm wondering if this work should get wrapped up with the |
Can you explain these options a bit more? Does the decision change how we fix the issue? |
With the next cycles release (1.11.0) we wanted to move the Webhooks definitions from I.e if you are in there messing with the ValidatingWebhookConfiguration and MutatingWebhookConfiguration - you might as well migrate us to v1 while you are in there 😄 |
fwiw, for the specific case of setting |
Yeah, not saying the work is dependent, just saying it might be nice to do both pieces at once. Don't have to though! |
Thanks for the fix, Robert! :) (Sorry I didn't get to it before -- I got sidetracked with some other work.) |
What happened: validations.agones.dev and mutations.agones.dev fail to declare whether they have any side effects, so dryRun requests fail.
What you expected to happen: validations.agones.dev and mutations.agones.dev should declare whether they have side effects so that dryRun requests can decide whether to include the webhooks.
Anything else we need to know?:
I've looked at the implementations of the webhooks, and it looks like neither have side effects, so I suggest
sideEffects: None
. If the maintainers can confirm this is true and is expected to hold for the foreseeable future, I'm happy to send a patch adding the yaml.Environment:
The text was updated successfully, but these errors were encountered: