Skip to content
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

Questions about webhook #148

Closed
pjthepooh opened this issue Nov 3, 2021 · 2 comments
Closed

Questions about webhook #148

pjthepooh opened this issue Nov 3, 2021 · 2 comments

Comments

@pjthepooh
Copy link
Contributor

pjthepooh commented Nov 3, 2021

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

@pjthepooh
Copy link
Contributor Author

pjthepooh commented Nov 6, 2021

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?

@regadas
Copy link
Contributor

regadas commented Jan 4, 2022

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.

@regadas regadas closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants