From fbd758c8aacf198540131b1739856c84c035cc08 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Mon, 11 Mar 2024 12:14:54 +0100 Subject: [PATCH] add testing of KF MR Manifests Signed-off-by: Matteo Mortari --- .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..b08a370e 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: Create Test Registry + env: + IMG: "quay.io/opendatahub/model-registry:${{ steps.tags.outputs.tag }}" + run: | + echo "Deploying Model Registry using Manifests; branch ${BRANCH}" + kubectl create namespace kubeflow + cd manifests/kustomize/overlays/db + kustomize edit set image quay.io/opendatahub/model-registry:latest $IMG + kubectl apply -k . + - name: Wait for Test Registry Deployment + run: | + kubectl wait --for=condition=available -n kubeflow deployment/model-registry-db --timeout=5m + kubectl wait --for=condition=available -n kubeflow deployment/model-registry-deployment --timeout=5m + kubectl logs -n kubeflow deployment/model-registry-deployment