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

feat: add health & ready to healthStatus #16

Closed
wants to merge 3 commits into from

Conversation

adityathebe
Copy link
Member

No description provided.

pkg/health/health.go Outdated Show resolved Hide resolved
for _, cond := range node.Status.Conditions {
if cond.Type == v1.NodeReady && cond.Status == v1.ConditionTrue {
return &HealthStatus{
Ready: true,
Copy link
Member

Choose a reason for hiding this comment

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

I think ready should default to true if not specified

Copy link
Member Author

Choose a reason for hiding this comment

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

most of the cases result in Ready being false. So, I think this is fine.

@adityathebe adityathebe marked this pull request as ready for review April 9, 2024 05:52
@moshloop moshloop closed this Apr 15, 2024
@adityathebe adityathebe deleted the feat/ready-health branch April 17, 2024 06:48
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.

2 participants