diff --git a/controllers/main.go b/controllers/main.go index 2b2aef2a5..17b75bc40 100644 --- a/controllers/main.go +++ b/controllers/main.go @@ -283,7 +283,7 @@ func main() { os.Exit(1) } - if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil { + if err := mgr.AddReadyzCheck("readyz", mgr.GetWebhookServer().StartedChecker()); err != nil { setupLog.Error(err, "unable to set up ready check") os.Exit(1) } diff --git a/scripts/deploy-on-kind.sh b/scripts/deploy-on-kind.sh index 8099a7397..e18ede304 100755 --- a/scripts/deploy-on-kind.sh +++ b/scripts/deploy-on-kind.sh @@ -279,8 +279,10 @@ function deploy_cf_k8s_controllers() { } popd >/dev/null + kubectl rollout status deployment/cf-k8s-controllers-controller-manager -w -n cf-k8s-controllers-system + if [[ -n "${default_domain}" ]]; then - retry kubectl apply -f "${CONTROLLER_DIR}/config/samples/cfdomain.yaml" + kubectl apply -f "${CONTROLLER_DIR}/config/samples/cfdomain.yaml" fi }