diff --git a/.github/workflows/build-image-pr.yml b/.github/workflows/build-image-pr.yml index 01b79ca4..a556d53c 100644 --- a/.github/workflows/build-image-pr.yml +++ b/.github/workflows/build-image-pr.yml @@ -37,6 +37,11 @@ jobs: uses: helm/kind-action@v1.10.0 with: node_image: "kindest/node:v1.27.11" + - name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507 + run: | + set -x + sudo apt-get install apparmor-profiles + sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: Load Local Registry Test Image env: IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}" diff --git a/.github/workflows/csi-test.yml b/.github/workflows/csi-test.yml index 01ff6d16..759b745b 100644 --- a/.github/workflows/csi-test.yml +++ b/.github/workflows/csi-test.yml @@ -63,6 +63,12 @@ jobs: with: node_image: "kindest/node:v1.27.11" + - name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507 + run: | + set -x + sudo apt-get install apparmor-profiles + sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld + - name: Install kustomize run: ./csi/scripts/install_kustomize.sh diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 556143a9..0edf5d97 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -126,6 +126,11 @@ jobs: with: node_image: "kindest/node:v1.27.11" cluster_name: chart-testing-py-${{ matrix.python }} + - name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507 + run: | + set -x + sudo apt-get install apparmor-profiles + sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: Load Local Registry Test Image env: IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}" diff --git a/manifests/kustomize/overlays/db/kustomization.yaml b/manifests/kustomize/overlays/db/kustomization.yaml index 947c7a98..cf53e416 100644 --- a/manifests/kustomize/overlays/db/kustomization.yaml +++ b/manifests/kustomize/overlays/db/kustomization.yaml @@ -26,7 +26,7 @@ generatorOptions: images: - name: mysql newName: mysql - newTag: 8.0.3 + newTag: 8.0.39 vars: - fieldref: diff --git a/scripts/deploy_on_kind.sh b/scripts/deploy_on_kind.sh index ecc3a594..cf25ce99 100755 --- a/scripts/deploy_on_kind.sh +++ b/scripts/deploy_on_kind.sh @@ -39,7 +39,12 @@ kubectl apply -k manifests/kustomize/overlays/db kubectl patch deployment -n "$MR_NAMESPACE" model-registry-deployment \ --patch '{"spec": {"template": {"spec": {"containers": [{"name": "rest-container", "image": "'$IMG'", "imagePullPolicy": "IfNotPresent"}]}}}}' -kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m +if ! kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m ; then + kubectl events -A + kubectl describe deployment/model-registry-db -n kubeflow + kubectl logs deployment/model-registry-db -n kubeflow + exit 1 +fi kubectl delete pod -n "$MR_NAMESPACE" --selector='component=model-registry-server'