-
Notifications
You must be signed in to change notification settings - Fork 160
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
Move set and health packages here to avoid Felix/Typha duplication #462
Conversation
lib/health/health.go
Outdated
log.Debug("GET /readiness") | ||
status := STATUS_BAD | ||
if state.Ready() { | ||
log.Debug("Felix is ready") |
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.
We shouldn't have Felix specific logging in libcalico.
I need to think about whether or not this belongs in libcalico-go some more. It's nice to make things common, but also libcalico shouldn't be the go-to place to put any lines of code that are shared across >1 Calico components. |
For the record, we've agreed that libcalico-go is a reasonable home for common packages such as these. I've just updated this PR so as to have the latest health package code, as reviewed and revised at projectcalico/felix#1489. Next steps:
|
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.
LGTM
…ico#462) Co-authored-by: Alina Militaru <[email protected]>
Description
'set' and 'health' are library packages used by both Felix and Typha. By moving them here we can eliminate duplicate code in the Felix and Typha repos - and anyway they probably should be here as this is lib calico-go.