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

Skip to content

Conversation

@youngnick
Copy link
Member

Adds the --ingress-status-address flag to specify what address should be added to Ingress status.loadbalancer stanza by Contour.

Setting this flag will disable the automatic Envoy service watching for those details.

Fixes #2387
Updates #403

Further documentation to come under #403.

Signed-off-by: Nick Young [email protected]

@youngnick youngnick added this to the 1.4.0 milestone Apr 8, 2020
@youngnick youngnick requested review from jpeach and stevesloka April 8, 2020 06:14
@youngnick youngnick self-assigned this Apr 8, 2020
@codecov
Copy link

codecov bot commented Apr 8, 2020

Codecov Report

Merging #2421 into master will decrease coverage by 0.01%.
The diff coverage is 52.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2421      +/-   ##
==========================================
- Coverage   76.69%   76.67%   -0.02%     
==========================================
  Files          68       68              
  Lines        5489     5506      +17     
==========================================
+ Hits         4210     4222      +12     
- Misses       1182     1187       +5     
  Partials       97       97              
Impacted Files Coverage Δ
cmd/contour/serve.go 0.00% <0.00%> (ø)
cmd/contour/servecontext.go 91.48% <ø> (ø)
cmd/contour/ingressstatus.go 25.00% <100.00%> (+25.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 359181f...1893a3a. Read the comment docs.

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.

Good change! We should add a test, but everything else is optional nits.

ServiceName: ctx.envoyServiceName,
LBStatus: lbsw.lbStatus,
// step 12. register an informer to watch envoy's service if we haven't been given static details.
if ctx.ingressStatusAddress == "" {
Copy link
Member

Choose a reason for hiding this comment

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

Do we care if the address passed in is valid? Like if I entered steve.s.%%% for the address. Maybe a followup issue, but just thinking out loud.

Copy link
Member Author

Choose a reason for hiding this comment

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

We could check that it's either a DNS name or IP address, I suppose.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, I've thought over this more, and I don't think it's worth doing much validation here. We already check if it's an IP or a hostname, I think that's enough.

@youngnick youngnick force-pushed the ingressstatus-cmdline branch 3 times, most recently from 63a1f7c to 5d757a5 Compare April 17, 2020 07:22
@youngnick youngnick requested review from jpeach and stevesloka April 17, 2020 07:23
@youngnick youngnick force-pushed the ingressstatus-cmdline branch from 5d757a5 to 76868c4 Compare April 17, 2020 07:24
Adds the `--ingress-status-address` flag to specify what address should be added to Ingress `status.loadbalancer` stanza by Contour.

Setting this flag will disable the automatic Envoy service watching for those details.

Fixes projectcontour#2387
Updates projectcontour#403

Further documentation to come under projectcontour#403.

Signed-off-by: Nick Young <[email protected]>
@youngnick youngnick force-pushed the ingressstatus-cmdline branch from 76868c4 to 1893a3a Compare April 20, 2020 04:30
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.

LGTM. I'm OK with not doing any additional validity checks on the hostname status address.

@youngnick youngnick merged commit 0853282 into projectcontour:master Apr 20, 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.

Add command line flag to allow specification of Ingress.status.Loadbalancer value

3 participants