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

Changing StatsAddress flag from Int to String to prevent Init container crash loop. #742

Merged
merged 4 commits into from Oct 14, 2018

Conversation

josebiro
Copy link
Contributor

@josebiro josebiro commented Oct 7, 2018

And fixing deployment defaults for prometheus scraping to match reality.

This is a small bugfix, so didn't file an issue. Let me know if that's not appropriate.

All tests pass. Built and tested via docker and confirmed that:

  • init container is no longer crash looping with the '--stats-address=0.0.0.0' flag set (it did previously, even though 0.0.0.0 is the default)
  • the generated contour.yaml file produces the correct output.
  • prometheus when configured with port 8002 can scrap metrics.

@davecheney
Copy link
Contributor

Thanks for this fix. Assigning @alexbrand to review.

@josebiro in the future would you please raise a bug so we can track defects across releases. Thanks

@davecheney davecheney added this to the 0.7.0 milestone Oct 8, 2018
@davecheney
Copy link
Contributor

This may need a possible backport for 0.6.2 if gimbal users need it, /cc @stevesloka @rosskukulinski

@alexbrand
Copy link
Contributor

Thanks @josebiro. I think this looks good, but do you mind adding a test case to internal/envoy/config_test.go where we set the stats address and port?

@josebiro
Copy link
Contributor Author

Test added. Checks should pass, everything is signed off, but for some reason github went from passing to waiting.

Copy link
Contributor

@alexbrand alexbrand left a comment

Choose a reason for hiding this comment

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

Thanks @josebiro. This LGTM. Do you mind rebasing from master as well?

@josebiro josebiro force-pushed the master branch 2 times, most recently from 3b04268 to eca1d06 Compare October 12, 2018 01:30
@josebiro
Copy link
Contributor Author

Rebased; feel free to merge at your will.

…ults to match reality.

Signed-off-by: Joseph Bironas <josebiro@gmail.com>

Signed-off-by: Joseph Bironas <josebiro@gmail.com>
Signed-off-by: Joseph Bironas <josebiro@gmail.com>
Signed-off-by: Joseph Bironas <josebiro@gmail.com>

Signed-off-by: Joseph Bironas <josebiro@gmail.com>
Signed-off-by: Joseph Bironas <josebiro@gmail.com>

Signed-off-by: Joseph Bironas <josebiro@gmail.com>
@josebiro josebiro closed this Oct 13, 2018
@josebiro josebiro reopened this Oct 13, 2018
@josebiro josebiro closed this Oct 13, 2018
@josebiro josebiro reopened this Oct 13, 2018
@davecheney davecheney merged commit af21075 into projectcontour:master Oct 14, 2018
@davecheney
Copy link
Contributor

Thank you very much.

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.

None yet

3 participants