From a0495e82ec2a50303fed378a9153de1e4b9890ae Mon Sep 17 00:00:00 2001 From: Yi Rae Kim Date: Tue, 14 Nov 2023 09:28:52 -0500 Subject: [PATCH] add while Signed-off-by: Yi Rae Kim --- .github/workflows/olm_tests.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/olm_tests.yaml b/.github/workflows/olm_tests.yaml index ce1b89665..5a1528ad3 100644 --- a/.github/workflows/olm_tests.yaml +++ b/.github/workflows/olm_tests.yaml @@ -54,6 +54,10 @@ jobs: - name: Deploy resources on KIND cluster to install Gatekeeper run: | make deploy-using-olm REPO=localhost:5000 VERSION=$GITHUB_SHA NAMESPACE=mygatekeeper + while ! kubectl -n mygatekeeper get deployment gatekeeper-operator-controller; do \ + echo "Waiting for operator deployment"; \ + sleep 2; \ + done kubectl -n mygatekeeper wait pod -l olm.catalogSource=gatekeeper-operator --for condition=ready --timeout=300s - name: E2E Tests