Skip to content

Commit

Permalink
Install calico for tests
Browse files Browse the repository at this point in the history
Signed-off-by: hansinikarunarathne <107214435+hansinikarunarathne@users.noreply.github.com>
  • Loading branch information
hansinikarunarathne committed Jul 27, 2024
1 parent 5ac0da5 commit a964546
Show file tree
Hide file tree
Showing 24 changed files with 74 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/admission_webhook_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/bentoml_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/centraldashboard_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dex_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/jupyter_web_application_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/katib_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/kserve_cni_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/kserve_m2m_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:

- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kubectl
run: ./tests/gh-actions/install_kubectl.sh
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/kserve_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/metacontroller_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config ./tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/model_registry_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kubectl
run: ./tests/gh-actions/install_kubectl.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/notebook_controller_m2m_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kubectl
run: ./tests/gh-actions/install_kubectl.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/notebook_controller_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pipeline_run_from_notebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pipeline_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/profiles_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ray_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/seldon_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tensorboard_controller_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tensorboards_web_application_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/training_operator_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/volumes_web_application_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Create KinD Cluster
run: kind create cluster --config tests/gh-actions/kind-cluster.yaml

- name: Install Calico
run: ./tests/gh-actions/install_calico.sh

- name: Install kustomize
run: ./tests/gh-actions/install_kustomize.sh

Expand Down
6 changes: 6 additions & 0 deletions tests/gh-actions/install_calico.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml

kubectl wait --for=condition=Ready pods --all --namespace=calico-system --timeout 300s
2 changes: 2 additions & 0 deletions tests/gh-actions/kind-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kubeadmConfigPatches:
extraArgs:
"service-account-issuer": "kubernetes.default.svc"
"service-account-signing-key-file": "/etc/kubernetes/pki/sa.key"
networking:
disableDefaultCNI: true
nodes:
- role: control-plane
image: kindest/node:v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8
Expand Down

0 comments on commit a964546

Please sign in to comment.