-
Notifications
You must be signed in to change notification settings - Fork 50
Add new "Healthy" type condition and Reasons #711
Add new "Healthy" type condition and Reasons #711
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #711 +/- ##
==========================================
+ Coverage 19.21% 24.67% +5.45%
==========================================
Files 13 14 +1
Lines 1046 1143 +97
==========================================
+ Hits 201 282 +81
- Misses 801 807 +6
- Partials 44 54 +10
☔ View full report in Codecov by Sentry. |
Was this PR supposed to include the implementation as well? |
@stevekuznetsov My understanding from looking at the issues was that #706 would be for the implementation |
Seems weird but ok |
I would prefer that API changes are merged in a single PR with their implementation. Would you be able to do that for this? |
Totally! Makes more sense to me. |
21bd3c2
to
7c1b52f
Compare
3fbda66
to
0f9a933
Compare
0f9a933
to
7610a43
Compare
a19f94c
to
392a52f
Compare
677c31f
to
253041a
Compare
The approving review I gave was long ago and is stale
253041a
to
3b55b2e
Compare
3b55b2e
to
1436e98
Compare
Signed-off-by: Joaquim Moreno Prusi <[email protected]>
Signed-off-by: Joaquim Moreno Prusi <[email protected]>
Signed-off-by: Joaquim Moreno Prusi <[email protected]>
Adds a "builtin" healthcheck function. It returns true if all resources are healthy with nil error. It returns false if any of the resources are not healthy, the error contains the GVK + resource name, and the error message of each unhealthy resource. The current list of supported resources is: - Deployments - StatefulSets - DaemonSets - ReplicaSets - Pods - APIServices - CustomResourceDefinitions If the resource is not supported, it is assumed to be healthy. Signed-off-by: Joaquim Moreno Prusi <[email protected]>
Signed-off-by: Joaquim Moreno Prusi <[email protected]>
Signed-off-by: Joaquim Moreno Prusi <[email protected]>
1436e98
to
7d0dfb2
Compare
Adds a "built-in" health check function under a feature gate.
It returns true if all resources are healthy with nil error.
It returns false if any of the resources are not healthy; the error contains the GVK + resource name and the error message of
each unhealthy resource.
The current list of supported resources is:
If the resource is not supported, it is assumed to be healthy.
closes #704
closes #705
closes #706