From 9cecc0ccf12767b38dc10eba820bedcc9205e333 Mon Sep 17 00:00:00 2001 From: williamlardier Date: Fri, 30 Aug 2024 11:04:29 +0200 Subject: [PATCH] Wait for promOperator CRD to be created when dpeloying Zenko --- .github/scripts/end2end/install-kind-dependencies.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/end2end/install-kind-dependencies.sh b/.github/scripts/end2end/install-kind-dependencies.sh index ac9a1642d5..afc63da04a 100755 --- a/.github/scripts/end2end/install-kind-dependencies.sh +++ b/.github/scripts/end2end/install-kind-dependencies.sh @@ -72,6 +72,8 @@ kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/relea # so if apply fails, replace can work prom_url=https://raw.githubusercontent.com/coreos/prometheus-operator/${PROMETHEUS_VERSION}/bundle.yaml kubectl create -f $prom_url || kubectl replace -f $prom_url --wait +# wait for the resource to exist +kubectl wait --for=condition=established --timeout=10m crd/alertmanagers.monitoring.coreos.com envsubst < configs/prometheus.yaml | kubectl apply -f - # zookeeper