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

Move set and health packages here to avoid Felix/Typha duplication #462

Merged
merged 3 commits into from
Jul 19, 2017

Conversation

nelljerram
Copy link
Member

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.

log.Debug("GET /readiness")
status := STATUS_BAD
if state.Ready() {
log.Debug("Felix is ready")
Copy link
Member

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.

@caseydavenport
Copy link
Member

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.

@nelljerram
Copy link
Member Author

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:

  • change Felix to use this instead of its built-in set and health packages
  • finish Typha health work to use this and to implement correct liveness and readiness criteria
  • review, test and merge everything.

@caseydavenport caseydavenport added this to the Calico v2.4.0 milestone Jul 11, 2017
Copy link
Member

@fasaxc fasaxc left a comment

Choose a reason for hiding this comment

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

LGTM

@nelljerram nelljerram merged commit e1ab5e5 into projectcalico:master Jul 19, 2017
@nelljerram nelljerram deleted the set-health branch July 19, 2017 16:28
song-jiang pushed a commit to song-jiang/libcalico-go that referenced this pull request Jul 19, 2021
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.

3 participants