Fix: fix health check error

Signed-off-by: Somefive <yd219913@alibaba-inc.com>
This commit is contained in:
Somefive
2022-08-02 12:07:21 +08:00
parent 720ab3f6a8
commit ffb6d64a87
@@ -251,11 +251,6 @@ func (h *AppHandler) checkComponentHealth(appParser *appfile.Parser, appRev *v1b
}
_, isHealth, err := h.collectHealthStatus(auth.ContextWithUserInfo(ctx, h.app), wl, appRev, overrideNamespace)
// TODO(somefive): temporary fix, ignore resource not found error
if err != nil && strings.Contains(err.Error(), "not found") {
isHealth = false
err = nil
}
return isHealth, err
}
}