-
Notifications
You must be signed in to change notification settings - Fork 351
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
[experimental] Move admission webhook into skipper for better validation #2478
base: master
Are you sure you want to change the base?
Conversation
@@ -273,6 +274,12 @@ type Config struct { | |||
|
|||
LuaModules *listFlag `yaml:"lua-modules"` | |||
LuaSources *listFlag `yaml:"lua-sources"` | |||
|
|||
// admission webhook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you want to rename it to validation instead of admission.
That's at least what we intend to do even if it runs at admission. https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#validatingadmissionwebhook
26798e3
to
98ae7de
Compare
98ae7de
to
fb588a7
Compare
fb588a7
to
01670e2
Compare
@@ -1959,6 +1976,16 @@ func run(o Options, sig chan os.Signal, idleConnsCH chan struct{}) error { | |||
routing := routing.New(ro) | |||
defer routing.Close() | |||
|
|||
if o.EnableValidationWebhook { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I see the code starting some alternative mode of skipper binary. So I would expect something like routesrv.Run()
call nearby. Could you please kindly show me where it is? Is it possible to put it near this line of code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the next line you can see 'webhook.Run()'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I see webhook.Run()
, but I would expect to see routesrv.Run()
too. Both of them, basically.
From my side it makes some sense, because both "webhook" and "routesrv" are some "custom mode" of running skipper binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why should they run together? Every mode is a separate one and everyone run it's own required place and own required options
I think it's better to have a separate component as we have today. |
Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
01670e2
to
a20d3eb
Compare
Efforts to solve this #1618