numberly / kubemen

Kubemen watch your Kubernetes cluster and send notifications when a resource changes
https://kubemen.readthedocs.io
MIT License
13 stars 0 forks source link

kubectl apply --dry-run=server & kubectl diff generate "Update of Deployment" messages #7

Closed trubesv closed 3 years ago

ramnes commented 3 years ago

Do you mean by "outputed" that it triggers messages? That's weird, because we have this: https://github.com/numberly/kubemen/blob/master/kubemen/app.py#L46

Maybe there's another field for diffs?

Depending on your needs, you could use kubectl apply --dry-run=server as a workaround.

shnups commented 3 years ago

Actually, i've just tested and both kubectl diff and kubectl apply --dry-run=server make kubemen generate "Update of Deployment" messages.

ramnes commented 3 years ago

That's weird. Is the admission webhook configured with sideEffects: NoneOnDryRun as seen here? Does Kubemen receive the dryRun flag as handled here?

Documentation you might be interested in:

ramnes commented 3 years ago

Probably an API change in Kubernetes, and if so we should check both places.