You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update health probe to make use of healthChecker
healthChecker was introduced in open-cluster-management-io/addon-framework#289
and it allow us to define a list of ProbeFields as before but it also
allows us to define HealthChecker. HealthChecker has the ability to go
through all the resultFields and decide which resources are mandatory
and should trigger
unheathly probes and which resources are optional
returnfmt.Errorf("%w: clusterlogforwarder with key %s/%s", errProbeValueIsNil, identifier.Namespace, identifier.Name)
103
-
}
112
+
ifvalue.Value.String==nil {
113
+
returnfmt.Errorf("%w: %s with key %s/%s", errProbeValueIsNil, identifier.Resource, identifier.Namespace, identifier.Name)
114
+
}
104
115
105
-
if*value.Value.String!="True" {
106
-
returnfmt.Errorf("%w: clusterlogforwarder status condition type is %s for %s/%s", errProbeConditionNotSatisfied, *value.Value.String, identifier.Namespace, identifier.Name)
116
+
if*value.Value.String!="True" {
117
+
returnfmt.Errorf("%w: %s status condition type is %s for %s/%s", errProbeConditionNotSatisfied, identifier.Resource, *value.Value.String, identifier.Namespace, identifier.Name)
118
+
}
119
+
// everything checks we should skip to the next field
0 commit comments