istio-cni by default #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Apply KServe manifests in KinD | |
on: | |
pull_request: | |
paths: | |
- tests/gh-actions/install_KinD_create_KinD_cluster_install_kustomize.sh | |
- .github/workflows/kserve_test.yaml | |
- contrib/kserve/** | |
- tests/gh-actions/install_cert_manager.sh | |
- common/cert-manager/** | |
- tests/gh-actions/install_knative.sh | |
- common/knative/** | |
- tests/gh-actions/install_kserve.sh | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install KinD, Create KinD cluster and Install kustomize | |
run: ./tests/gh-actions/install_KinD_create_KinD_cluster_install_kustomize.sh | |
- name: Create kubeflow namespace | |
run: kustomize build common/kubeflow-namespace/base | kubectl apply -f - | |
- name: Install Istio | |
run: ./tests/gh-actions/install_istio-cni.sh | |
- name: Install cert-manager | |
run: ./tests/gh-actions/install_cert_manager.sh | |
- name: Install knative | |
run: ./tests/gh-actions/install_knative.sh | |
- name: Build & Apply manifests | |
run: ./tests/gh-actions/install_kserve.sh | |
- name: Create test namespace | |
run: kubectl create ns kserve-test | |
- name: Setup python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install test dependencies | |
run: pip install -r ./contrib/kserve/tests/requirements.txt | |
- name: Port forward | |
run: | | |
INGRESS_GATEWAY_SERVICE=$(kubectl get svc --namespace istio-system --selector="app=istio-ingressgateway" --output jsonpath='{.items[0].metadata.name}') | |
nohup kubectl port-forward --namespace istio-system svc/${INGRESS_GATEWAY_SERVICE} 8080:80 & | |
- name: Run kserve tests | |
run: | | |
export KSERVE_INGRESS_HOST_PORT=localhost:8080 | |
cd ./contrib/kserve/tests && pytest . | |
- name: Run kserve models webapp test | |
run: | | |
kubectl wait --for=condition=Available --timeout=300s -n kubeflow deployment/kserve-models-web-app |