From 7a8bded748342fb2be184e99635ecd0c539419b2 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Fri, 22 Nov 2024 18:22:20 +0100 Subject: [PATCH] debug handle for kind deploy Signed-off-by: Matteo Mortari --- scripts/deploy_on_kind.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_on_kind.sh b/scripts/deploy_on_kind.sh index ecc3a594..b3911fac 100755 --- a/scripts/deploy_on_kind.sh +++ b/scripts/deploy_on_kind.sh @@ -39,7 +39,10 @@ kubectl apply -k manifests/kustomize/overlays/db kubectl patch deployment -n "$MR_NAMESPACE" model-registry-deployment \ --patch '{"spec": {"template": {"spec": {"containers": [{"name": "rest-container", "image": "'$IMG'", "imagePullPolicy": "IfNotPresent"}]}}}}' -kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m +if ! kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m ; then + kubectl events -A + exit 1 +fi kubectl delete pod -n "$MR_NAMESPACE" --selector='component=model-registry-server'