Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@al45tair
Copy link
Contributor

When using a cluster without a LoadBalancer, it's common to configure
Envoy to use host networking and to run on some number of nodes (maybe
all of them, using a DaemonSet).

In that case, Contour won't pick up the IP addresses automatically as
there's no LoadBalancer; one approach to working around this is to
supply the --ingress-status-address argument, but this only supported
a single address.

This changeset adds support for multiple addresses, separated by
commas.

Fixes #2540

Signed-off-by: Alastair Houghton [email protected]

@codecov
Copy link

codecov bot commented May 19, 2020

Codecov Report

Merging #2542 into master will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2542      +/-   ##
==========================================
+ Coverage   76.97%   77.07%   +0.09%     
==========================================
  Files          68       70       +2     
  Lines        5707     5736      +29     
==========================================
+ Hits         4393     4421      +28     
- Misses       1218     1219       +1     
  Partials       96       96              
Impacted Files Coverage Δ
cmd/contour/ingressstatus.go 36.06% <100.00%> (+4.48%) ⬆️
internal/fixture/meta.go 100.00% <0.00%> (ø)
internal/fixture/httpproxy.go 86.95% <0.00%> (ø)
internal/featuretests/kubernetes.go 100.00% <0.00%> (+11.76%) ⬆️

Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR @al45tair; good commit message and test coverage, very nice!

Just one minor review comment where I think we can simplify separating the comma-separated addresses.

The CI failure is complaining about goimports formatting problem. You can verify this locally by running make lint. It looks like goimports wants to align the field values of your test cases.

When using a cluster without a LoadBalancer, it's common to configure
Envoy to use host networking and to run on some number of nodes (maybe
all of them, using a DaemonSet).

In that case, Contour won't pick up the IP addresses automatically as
there's no LoadBalancer; one approach to working around this is to
supply the --ingress-status-address argument, but this only supported
a single address.

This changeset adds support for multiple addresses, separated by
commas.

Fixes projectcontour#2540

Signed-off-by: Alastair Houghton <[email protected]>
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. I'll give @youngnick a chance to review before I merge.

Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks very much for this @al45tair! We can talk more about the other request on that issue.

@jpeach jpeach merged commit 869d9cd into projectcontour:master May 21, 2020
@jpeach jpeach added this to the 1.5.0 milestone May 28, 2020
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.

--ingress-status-address supports only a single address

3 participants