Skip to content

fix(notebooks): correctly handle status.containerState messages #297

fix(notebooks): correctly handle status.containerState messages

fix(notebooks): correctly handle status.containerState messages #297

name: VWA Intergration Test
on:
pull_request:
paths:
- components/crud-web-apps/volumes/**
- components/crud-web-apps/common/**
branches:
- master
- v*-branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
cancel-in-progress: true
env:
IMG: volumes-web-app
TAG: intergration-test
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build VWA Image
run: |
cd components/crud-web-apps/volumes
make docker-build-multi-arch
- name: Install KinD
run: ./components/testing/gh-actions/install_kind.sh
- name: Create KinD Cluster
run: kind create cluster --config components/testing/gh-actions/kind-1-25.yaml
- name: Load Image into KinD Cluster
run: |
kind load docker-image "${IMG}:${TAG}"
- name: Install kustomize
run: ./components/testing/gh-actions/install_kustomize.sh
- name: Install Istio
run: ./components/testing/gh-actions/install_istio.sh
- name: Build & Apply manifests
run: |
cd components/crud-web-apps/volumes/manifests
kubectl create ns kubeflow
export CURRENT_IMAGE="docker.io/kubeflownotebookswg/${IMG}"
export PR_IMAGE="${IMG}:${TAG}"
# escape "." in the image names, as it is a special characters in sed
export CURRENT_IMAGE=$(echo "$CURRENT_IMAGE" | sed 's|\.|\\.|g')
export PR_IMAGE=$(echo "$PR_IMAGE" | sed 's|\.|\\.|g')
kustomize build overlays/istio \
| sed "s|${CURRENT_IMAGE}:[a-zA-Z0-9_.-]*|${PR_IMAGE}|g" \
| kubectl apply -f -
kubectl wait pods -n kubeflow -l app=volumes-web-app --for=condition=Ready --timeout=300s