From 8319226212ff8caa1ee0bc406b777a15f2168d05 Mon Sep 17 00:00:00 2001 From: tarilabs Date: Wed, 21 Feb 2024 09:52:49 +0100 Subject: [PATCH] Revert "kubeflow: remove operator test in pr check (#16)" This reverts commit 7bcdc49eb74291f9e5e10658b9d10ed68bc06913. --- .github/workflows/build-image-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/build-image-pr.yml b/.github/workflows/build-image-pr.yml index 66cee7c2..1c3cc003 100644 --- a/.github/workflows/build-image-pr.yml +++ b/.github/workflows/build-image-pr.yml @@ -31,3 +31,24 @@ jobs: env: VERSION: ${{ steps.tags.outputs.tag }} run: ./scripts/build_deploy.sh + - name: Start Kind Cluster + uses: helm/kind-action@v1.9.0 + - name: Load Local Registry Test Image + env: + IMG: "quay.io/opendatahub/model-registry:${{ steps.tags.outputs.tag }}" + run: | + kind load docker-image -n chart-testing ${IMG} + - name: Deploy Operator With Test Image + env: + IMG: "quay.io/opendatahub/model-registry:${{ steps.tags.outputs.tag }}" + run: | + echo "Deploying operator from model-registry-operator branch ${BRANCH}" + kubectl apply -k "https://github.com/opendatahub-io/model-registry-operator.git/config/default?ref=${BRANCH}" + kubectl set env -n model-registry-operator-system deployment/model-registry-operator-controller-manager REST_IMAGE="${IMG}" + - name: Create Test Registry + run: | + kubectl apply -k "https://github.com/opendatahub-io/model-registry-operator.git/config/samples?ref=${BRANCH}" + kubectl get mr + - name: Wait for Test Registry Deployment + run: | + kubectl wait --for=condition=Available=true modelregistries/modelregistry-sample --timeout=5m