in main.go [137:148]
func setupHealthzAndReadyzCheck(mgr ctrl.Manager) {
defer setupLog.Info("both healthz and readyz check are finished and configured")
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up health check")
os.Exit(1)
}
if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil {
setupLog.Error(err, "unable to set up ready check")
os.Exit(1)
}
}