-
Notifications
You must be signed in to change notification settings - Fork 81
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 LB with DNS hostname only #230
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #230 +/- ##
==========================================
- Coverage 71.57% 71.43% -0.14%
==========================================
Files 24 24
Lines 1780 1782 +2
==========================================
- Hits 1274 1273 -1
- Misses 406 407 +1
- Partials 100 102 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Thanks for the PR. Looks good to me. Can you please fix the linter errors? You can use |
Thanks, fixed 👍 |
internal/k8s/service.go
Outdated
@@ -59,7 +59,12 @@ func GetServiceAddress( | |||
} | |||
|
|||
if len(res.Status.LoadBalancer.Ingress) > 0 { | |||
result = res.Status.LoadBalancer.Ingress[0].IP | |||
|
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.
Can you remove this empty line? Linter is still complaining about it:
Error: unnecessary leading newline (whitespace)
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.
Fixed
Sorry, I did the quick fix using online IDE ;) |
Thanks for the contribution :) |
Types of changes
AWS Load Balancer (NLB) now uses DNS-based hostname. This PR adds support to extract hostname from Kubernetes Service.