smi: check SMI CRDs during liveness probe
SMI client implements the `health.Probes` interface for
readiness and liveness probes. This change checks for
the existence of SMI CRDs as a part of the liveness
probe.
@@ -16,7 +16,7 @@ type HealthChecker struct {
// Liveness is the Kubernetes liveness probe handler.
func (smi HealthChecker) Liveness() bool {
- return true
+ return checkSMICrdsExist(smi.SMIClientset)
}
// Readiness is the Kubernetes readiness probe handler.
