From 96dc74f67c76b6a26fa958706799be1da038a631 Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Mon, 29 Apr 2024 14:38:24 +0200 Subject: [PATCH] Setup KF Model Registry GH tests --- .github/workflows/model_registry_test.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/model_registry_test.yaml diff --git a/.github/workflows/model_registry_test.yaml b/.github/workflows/model_registry_test.yaml new file mode 100644 index 0000000000..869d9510b1 --- /dev/null +++ b/.github/workflows/model_registry_test.yaml @@ -0,0 +1,40 @@ +name: Deploy and test Kubeflow Model Registry +on: + pull_request: + paths: + - apps/model-registry/upstream/** + - tests/gh-actions/kind-cluster.yaml + - tests/gh-actions/install_istio.sh + +jobs: + build-kfmr: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install KinD + run: ./tests/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config tests/gh-actions/kind-cluster.yaml + + - name: Install kustomize + run: ./tests/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./tests/gh-actions/install_istio.sh + + - name: Create kubeflow namespace + run: kustomize build common/kubeflow-namespace/base | kubectl apply -f - + + - name: Build & Apply KF Model Registry manifests + run: | + kustomize build apps/model-registry/upstream/overlays/db | kubectl apply -f - + kustomize build apps/model-registry/upstream/options/istio | kubectl apply -f - + + - name: Test KF Model Registry deployment + run: | + echo "Waiting for all Model Registry Pods to become ready..." + kubectl wait --for=condition=available -n kubeflow deployment/model-registry-db --timeout=600s + kubectl wait --for=condition=available -n kubeflow deployment/model-registry-deployment --timeout=600s