-
Notifications
You must be signed in to change notification settings - Fork 200
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
"admission-webhook.openebs.io" does not support dry run #1771
Comments
Workaround: since maya doesn't overwrite the config if it exists, and since it appears there are no side-effects, it seems safe to modify the config after it appears. |
@mpartel i have tried to run the --dry-run command, but not getting any error, can you share the k8s version you are trying ?
Yes , there is no side-effects. |
It was either 1.19.3 or 1.19.4 |
Ok , i think you already tried by setting the |
Yeah, I've seen no problems having set that manually 👍 |
Description
When running
kubectl diff
orkubectl apply --dry-run
on a config that defines aPersistentVolumeClaim
, I get this error:admission webhook "admission-webhook.openebs.io" does not support dry run
Possible Solution
You can mark the ValidatingWebhook resource that OpenEBS installs in
webhook/configuration.go
assideEffects: None
orNoneOnDryRun
, assuming the webhook indeed has no side-effects.I can make a PR if that helps, but I'd prefer if a dev could tell me whether the webhook has no side-effects rather than reading through all that the code myself.
The text was updated successfully, but these errors were encountered: