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

bug: does cmd/contour have to call flag.Parse unconditionally #113

Closed
davecheney opened this issue Dec 18, 2017 · 5 comments
Closed

bug: does cmd/contour have to call flag.Parse unconditionally #113

davecheney opened this issue Dec 18, 2017 · 5 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@davecheney
Copy link
Contributor

ERROR: logging before flag.Parse: W1218 11:31:33.776933   73199 reflector.go:341] github.com/heptio/contour/internal/k8s/watcher.go:61: watch of *v1.Endpoints ended with: too old resource version: 8605078 (8606302)

cmd/contour uses kingpin, not flag, but I suspect the glog infection via client-go requires flag.Parse to be called unconditionally.

@davecheney davecheney added kind/bug Categorizes issue or PR as related to a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Dec 18, 2017
@willmadison
Copy link
Contributor

I'll take a look at this. Is the glog implicit dependency confirmed or simply suspected at this moment?

@davecheney
Copy link
Contributor Author

davecheney commented Dec 19, 2017 via email

@willmadison
Copy link
Contributor

Kewl I'll investigate further. I'd like to add an appropriate test for this bug but it sounds like it's as simple as adding an innocuous call to flag.Parse() but I'll look into it

@davecheney
Copy link
Contributor Author

davecheney commented Dec 19, 2017 via email

@willmadison
Copy link
Contributor

Fair enough. PR coming in just a sec...

willmadison added a commit to willmadison/contour that referenced this issue Dec 19, 2017
…t in package main.

Signed-off-by: Will <wmadisonDev@GMail.com>
willmadison added a commit to willmadison/contour that referenced this issue Dec 19, 2017
…t in package main.

Signed-off-by: Will <wmadisondev@GMail.com>
willmadison added a commit to willmadison/contour that referenced this issue Dec 19, 2017
… correctly at startup of cmd/contour

Signed-off-by: Will Madison <wmadisondev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

2 participants