-
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
routesrv: reuse skipper.Options #2416
Conversation
47fa773
to
b3bb997
Compare
Reuse skipper.Options datastructure to avoid duplicate work of adding the same flags/options to both skipper and routesrv. Followup on #1873 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
b3bb997
to
e294de2
Compare
👍 |
@@ -891,6 +891,39 @@ type Options struct { | |||
LuaSources []string | |||
} | |||
|
|||
func (o *Options) KubernetesDataClientOptions() kubernetes.Options { |
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.
Just one question here, is it better to have this as Options function or to send options reference?
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.
What do you see as an advantage to change it?
So, Skipper and Routesrv options set are completely identical, aren't they? |
👍 |
@@ -21,7 +21,6 @@ import ( | |||
"github.com/zalando/skipper/eskip" | |||
"github.com/zalando/skipper/net" | |||
"github.com/zalando/skipper/proxy" | |||
routesrv "github.com/zalando/skipper/routesrv" |
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, but routesrv uses only subset of them. Note also that it parses all flags so you can run it with a flag that it does not use e.g. |
Reuse skipper.Options datastructure to avoid duplicate work of adding
the same flags/options to both skipper and routesrv.
Followup on #1873
Signed-off-by: Alexander Yastrebov alexander.yastrebov@zalando.de