diff --git a/.github/workflows/centraldb_kind_test.yaml b/.github/workflows/centraldb_kind_test.yaml new file mode 100644 index 0000000000..739c5d6d23 --- /dev/null +++ b/.github/workflows/centraldb_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply CentralDashboard manifests in KinD +on: + pull_request: + paths: + - apps/centraldashboard/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/centraldashboard/upstream + kubectl create ns kubeflow + kustomize build overlays/kserve | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/jwa_kind_test.yaml b/.github/workflows/jwa_kind_test.yaml new file mode 100644 index 0000000000..8c8d3ceb8e --- /dev/null +++ b/.github/workflows/jwa_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply JWA manifests in KinD +on: + pull_request: + paths: + - apps/jupyter/jupyter-web-app/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/jupyter/jupyter-web-app/upstream + kubectl create ns kubeflow + kustomize build overlays/istio | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/katib_kind_test.yaml b/.github/workflows/katib_kind_test.yaml new file mode 100644 index 0000000000..e67e3592fe --- /dev/null +++ b/.github/workflows/katib_kind_test.yaml @@ -0,0 +1,34 @@ +name: Build & Apply Katib manifests in KinD +on: + pull_request: + paths: + - apps/katib/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Install cert-manager + run: ./testing/gh-actions/install_cert_manager.sh + + - name: Build & Apply manifests + run: | + cd apps/katib/upstream + kubectl create ns kubeflow + kustomize build installs/katib-with-kubeflow | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/kserve_kind_test.yaml b/.github/workflows/kserve_kind_test.yaml new file mode 100644 index 0000000000..d778dd19b7 --- /dev/null +++ b/.github/workflows/kserve_kind_test.yaml @@ -0,0 +1,35 @@ +name: Build & Apply KServe manifests in KinD +on: + pull_request: + paths: + - contrib/kserve/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Install cert-manager + run: ./testing/gh-actions/install_cert_manager.sh + + - name: Build & Apply manifests + run: | + cd contrib/kserve + kubectl create ns kubeflow + kustomize build kserve | kubectl apply -f - + kustomize build models-web-app/overlays/kubeflow | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/nb_controller_kind_test.yaml b/.github/workflows/nb_controller_kind_test.yaml new file mode 100644 index 0000000000..007de0a56b --- /dev/null +++ b/.github/workflows/nb_controller_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply Notebook Controller manifests in KinD +on: + pull_request: + paths: + - apps/jupyter/notebook-controller/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/jupyter/notebook-controller/upstream + kubectl create ns kubeflow + kustomize build overlays/kubeflow | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/pipeline_kind_test.yaml b/.github/workflows/pipeline_kind_test.yaml new file mode 100644 index 0000000000..d6ad29e8b8 --- /dev/null +++ b/.github/workflows/pipeline_kind_test.yaml @@ -0,0 +1,34 @@ +name: Build & Apply Kubeflow Pipelines manifests in KinD +on: + pull_request: + paths: + - apps/pipeline/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Install cert-manager + run: ./testing/gh-actions/install_cert_manager.sh + + - name: Build & Apply manifests + run: | + cd apps/pipeline/upstream + kubectl create ns kubeflow + kustomize build env/cert-manager/platform-agnostic-multi-user | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/poddefaults_kind_test.yaml b/.github/workflows/poddefaults_kind_test.yaml new file mode 100644 index 0000000000..fa99e1f32f --- /dev/null +++ b/.github/workflows/poddefaults_kind_test.yaml @@ -0,0 +1,34 @@ +name: Build & Apply PodDefaults manifests in KinD +on: + pull_request: + paths: + - apps/admission-webhook/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Install cert-manager + run: ./testing/gh-actions/install_cert_manager.sh + + - name: Build & Apply manifests + run: | + cd apps/admission-webhook/upstream + kubectl create ns kubeflow + kustomize build overlays/cert-manager | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/profiles_kind_test.yaml b/.github/workflows/profiles_kind_test.yaml new file mode 100644 index 0000000000..fb07207b94 --- /dev/null +++ b/.github/workflows/profiles_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply Profiles manifests in KinD +on: + pull_request: + paths: + - apps/profiles/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/profiles/upstream + kubectl create ns kubeflow + kustomize build overlays/kubeflow | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/tb_controller_kind_test.yaml b/.github/workflows/tb_controller_kind_test.yaml new file mode 100644 index 0000000000..8ab37301c6 --- /dev/null +++ b/.github/workflows/tb_controller_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply Tensorboard Controller manifests in KinD +on: + pull_request: + paths: + - apps/tensorboard/tensorboard-controller/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/tensorboard/tensorboard-controller/upstream + kubectl create ns kubeflow + kustomize build overlays/kubeflow | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/train_operator_kind_test.yaml b/.github/workflows/train_operator_kind_test.yaml new file mode 100644 index 0000000000..4dbaa6e181 --- /dev/null +++ b/.github/workflows/train_operator_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply Training Operator manifests in KinD +on: + pull_request: + paths: + - apps/training-operator/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/training-operator/upstream + kubectl create ns kubeflow + kustomize build overlays/kubeflow | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/twa_kind_test.yaml b/.github/workflows/twa_kind_test.yaml new file mode 100644 index 0000000000..afb74e6af5 --- /dev/null +++ b/.github/workflows/twa_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply TWA manifests in KinD +on: + pull_request: + paths: + - apps/tensorboard/tensorboards-web-app/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/tensorboard/tensorboards-web-app/upstream + kubectl create ns kubeflow + kustomize build overlays/istio | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/.github/workflows/vwa_kind_test.yaml b/.github/workflows/vwa_kind_test.yaml new file mode 100644 index 0000000000..b5822d2f9e --- /dev/null +++ b/.github/workflows/vwa_kind_test.yaml @@ -0,0 +1,31 @@ +name: Build & Apply VWA manifests in KinD +on: + pull_request: + paths: + - apps/volumes-web-app/upstream/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install KinD + run: ./testing/gh-actions/install_kind.sh + + - name: Create KinD Cluster + run: kind create cluster --config testing/gh-actions/kind-1-22.yaml + + - name: Install kustomize + run: ./testing/gh-actions/install_kustomize.sh + + - name: Install Istio + run: ./testing/gh-actions/install_istio.sh + + - name: Build & Apply manifests + run: | + cd apps/volumes-web-app/upstream + kubectl create ns kubeflow + kustomize build overlays/istio | kubectl apply -f - + kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s diff --git a/testing/gh-actions/install_cert_manager.sh b/testing/gh-actions/install_cert_manager.sh new file mode 100755 index 0000000000..dcb855abc4 --- /dev/null +++ b/testing/gh-actions/install_cert_manager.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e +echo "Installing cert-manager ..." +cd common/cert-manager +kubectl create namespace cert-manager +kustomize build cert-manager/base | kubectl apply -f - +echo "Waiting for cert-manager to be ready ..." +kubectl wait --for=condition=ready pod -l 'app in (cert-manager,webhook)' --timeout=180s -n cert-manager +kustomize build kubeflow-issuer/base | kubectl apply -f - \ No newline at end of file diff --git a/testing/gh-actions/install_istio.sh b/testing/gh-actions/install_istio.sh new file mode 100755 index 0000000000..7513c882c4 --- /dev/null +++ b/testing/gh-actions/install_istio.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e +echo "Installing Istio ..." +cd common/istio-1-11 +kustomize build istio-crds/base | kubectl apply -f - +kustomize build istio-namespace/base | kubectl apply -f - +kustomize build istio-install/base | kubectl apply -f - \ No newline at end of file diff --git a/testing/gh-actions/install_kind.sh b/testing/gh-actions/install_kind.sh new file mode 100755 index 0000000000..2c7f9eedcc --- /dev/null +++ b/testing/gh-actions/install_kind.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e +echo "Fetching KinD executable ..." +sudo swapoff -a +sudo rm -f /swapfile +sudo mkdir -p /tmp/etcd +sudo mount -t tmpfs tmpfs /tmp/etcd +curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.14.0/kind-linux-amd64 +chmod +x ./kind +sudo mv kind /usr/local/bin \ No newline at end of file diff --git a/testing/gh-actions/install_kustomize.sh b/testing/gh-actions/install_kustomize.sh new file mode 100755 index 0000000000..45196faf60 --- /dev/null +++ b/testing/gh-actions/install_kustomize.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +curl --silent --location --remote-name "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.2.3/kustomize_kustomize.v3.2.3_linux_amd64" +chmod a+x kustomize_kustomize.v3.2.3_linux_amd64 +sudo mv kustomize_kustomize.v3.2.3_linux_amd64 /usr/local/bin/kustomize \ No newline at end of file diff --git a/testing/gh-actions/kind-1-22.yaml b/testing/gh-actions/kind-1-22.yaml new file mode 100644 index 0000000000..bd4eaa69aa --- /dev/null +++ b/testing/gh-actions/kind-1-22.yaml @@ -0,0 +1,24 @@ +apiVersion: kind.x-k8s.io/v1alpha4 +kind: Cluster +# Configure registry for KinD. +containerdConfigPatches: +- |- + [plugins."io.containerd.grpc.v1.cri".registry.mirrors."$REGISTRY_NAME:$REGISTRY_PORT"] + endpoint = ["http://$REGISTRY_NAME:$REGISTRY_PORT"] +# This is needed in order to support projected volumes with service account tokens. +# See: https://kubernetes.slack.com/archives/CEKK1KTN2/p1600268272383600 +kubeadmConfigPatches: + - | + apiVersion: kubeadm.k8s.io/v1beta2 + kind: ClusterConfiguration + metadata: + name: config + apiServer: + extraArgs: + "service-account-issuer": "kubernetes.default.svc" + "service-account-signing-key-file": "/etc/kubernetes/pki/sa.key" +nodes: +- role: control-plane + image: kindest/node:1.22.9@sha256:ad5b8404c4052781365a4e70bb7d17c5331e4177bd4a7cd214339316cd6193b6 +- role: worker + image: kindest/node:1.22.9@sha256:ad5b8404c4052781365a4e70bb7d17c5331e4177bd4a7cd214339316cd6193b6