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

Add support for ClusterIP Services #43

Merged
merged 4 commits into from
Dec 7, 2018
Merged

Add support for ClusterIP Services #43

merged 4 commits into from
Dec 7, 2018

Conversation

adilyse
Copy link
Contributor

@adilyse adilyse commented Dec 7, 2018

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.

jipperinbham and others added 2 commits December 6, 2018 15:27
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.
@adilyse adilyse requested review from mitchellh, anubhavmishra and a team December 7, 2018 20:01
catalog/from-k8s/resource.go Outdated Show resolved Hide resolved
catalog/from-k8s/resource.go Outdated Show resolved Hide resolved
Copy link
Member

@banks banks left a 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!

catalog/from-k8s/resource.go Outdated Show resolved Hide resolved
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.
@adilyse adilyse merged commit b3bb949 into master Dec 7, 2018
@adilyse adilyse deleted the pr/18 branch December 7, 2018 23:18
@adilyse
Copy link
Contributor Author

adilyse commented Dec 7, 2018

Fixes #4 .

@jipperinbham
Copy link
Contributor

Thanks for getting most of the changes in. FWIW, the logic reverted in bc37d90 was needed to fix #8 I believe.

@adilyse
Copy link
Contributor Author

adilyse commented Dec 7, 2018

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!

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

Successfully merging this pull request may close these issues.

4 participants