-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add support for ClusterIP Services #43
Conversation
Adds a command line flag to `consul-k8s` that allows the user to enable or disable the syncing of ClusterIP services. Setting the flag to `false` keeps the current behavior, while the default is `true`, allowing the services to be synced. Updates the ClusterIP functionality tests, including adding a test with the functionality disabled. Removes an added log dependency within the tests.
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.
Super cursory look over the code and I don't see any obvious issues.
I'm not familiar enough with the code here to spot any subtle misses or reasons the tests might not work out well though so some caveats apply but as a sanity check the code looks sane to me!
There are some complications to how we determine the ports that will need to be revisited. This matches the current behavior until those oddities can be sorted out.
Fixes #4 . |
I will make sure to follow up and see that we fix that. For now, it made sense to separate these to make it a little cleaner. Thanks again for your changes-- there's been a lot of enthusiasm for this feature and it's great to be able to get it merged! |
This takes the great PR from @jipperinbham that adds ClusterIP service sync support and adds a flag to make it optional. Since there are many Kubernetes environments where ClusterIPs aren't externally routeable, this allows people in those environments an easier way to only sync routeable services.