You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that disabling webhook, specifically MutatingWebhook, will cause job submitter hangs after submitting the job successfully and other unexpected behaviors. The reason why asking this is because installing webhook can be potentially dangerous as it impacts every single API call that K8S makes and they have to be rigorously monitored. I want to better understand what features are using webhook, and what could be causing the issue when there is no MutatingWebhook in place, and the motivation of this design. Any insights will be appreciated.
After some digging, i found that mutating webhook is used to set default values in flinkcluster_default.go. When mutating webhook is disabled, job submitter will be run in Blocking mode vs Detached mode because of this logic along with other potential unexpected behaviors.
Another note is the CRD doc is not updated , i.e. not reflecting the actual available fields defined in the CRD yaml, e.g. job.mode, JM.replicas etc.
Looks like setting default values is basically all mutating webhook does and we can safely disable it if we already pre-fill those fields?
Hi @pjthepooh yup pretty much. The mutation webhook only adds defaults. I'll close this now ... feel free to open it if you want to keep discussing it.
I have noticed that disabling webhook, specifically MutatingWebhook, will cause job submitter hangs after submitting the job successfully and other unexpected behaviors. The reason why asking this is because installing webhook can be potentially dangerous as it impacts every single API call that K8S makes and they have to be rigorously monitored. I want to better understand what features are using webhook, and what could be causing the issue when there is no MutatingWebhook in place, and the motivation of this design. Any insights will be appreciated.
cc: @regadas @elanv
The text was updated successfully, but these errors were encountered: