-
Notifications
You must be signed in to change notification settings - Fork 169
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: introduce the available probe and condition #8212
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8212 +/- ##
==========================================
- Coverage 60.84% 60.81% -0.04%
==========================================
Files 350 351 +1
Lines 40571 40645 +74
==========================================
+ Hits 24686 24717 +31
- Misses 13639 13681 +42
- Partials 2246 2247 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7df4c0f
to
c7faf48
Compare
c7faf48
to
173961c
Compare
break | ||
} | ||
} | ||
if idx >= 0 && h.condEqual(comp.Status.Conditions[idx], newCond) { |
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.
can use helpers functions from https://github.com/kubernetes/apimachinery/blob/master/pkg/api/meta/conditions.go .
if latestEvent != nil { | ||
r.logger.Info("send probe event periodically", "probe", latestEvent.Probe, | ||
"code", latestEvent.Code, "output", outputPrefix(latestEvent.Output), "message", latestEvent.Message) | ||
r.sendEvent(latestEvent) |
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.
Why send the last event twice?
No description provided.