Skip to content

Commit 45e2838

Browse files
alexcreasytarilabs
andauthored
Bump mysql container image to one with an aarch64 image (#267)
* Bump mysql tag to one with an aarch64 image Signed-off-by: Alex Creasy <[email protected]> * debug handle for kind deploy Signed-off-by: Matteo Mortari <[email protected]> * more debug Signed-off-by: Matteo Mortari <[email protected]> * remove AppArmor profile for mysql in KinD on GHA Signed-off-by: Matteo Mortari <[email protected]> --------- Signed-off-by: Alex Creasy <[email protected]> Signed-off-by: Matteo Mortari <[email protected]> Co-authored-by: Matteo Mortari <[email protected]>
1 parent fd80d17 commit 45e2838

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

.github/workflows/build-image-pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
uses: helm/[email protected]
3838
with:
3939
node_image: "kindest/node:v1.27.11"
40+
- name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507
41+
run: |
42+
set -x
43+
sudo apt-get install apparmor-profiles
44+
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
4045
- name: Load Local Registry Test Image
4146
env:
4247
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"

.github/workflows/csi-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ jobs:
6363
with:
6464
node_image: "kindest/node:v1.27.11"
6565

66+
- name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507
67+
run: |
68+
set -x
69+
sudo apt-get install apparmor-profiles
70+
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
71+
6672
- name: Install kustomize
6773
run: ./test/scripts/install_kustomize.sh
6874

.github/workflows/python-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ jobs:
140140
node_image: kindest/node:${{ matrix.kubernetes-version }}
141141
cluster_name: chart-testing-py-${{ matrix.python }}
142142
kubectl_version: ${{ matrix.kubernetes-version }}
143+
- name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507
144+
run: |
145+
set -x
146+
sudo apt-get install apparmor-profiles
147+
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
143148
- name: Load Local Registry Test Image
144149
env:
145150
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"

manifests/kustomize/overlays/db/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ generatorOptions:
2626
images:
2727
- name: mysql
2828
newName: mysql
29-
newTag: 8.0.3
29+
newTag: 8.0.39
3030

3131
vars:
3232
- fieldref:

scripts/deploy_on_kind.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ kubectl apply -k manifests/kustomize/overlays/db
3939
kubectl patch deployment -n "$MR_NAMESPACE" model-registry-deployment \
4040
--patch '{"spec": {"template": {"spec": {"containers": [{"name": "rest-container", "image": "'$IMG'", "imagePullPolicy": "IfNotPresent"}]}}}}'
4141

42-
kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m
42+
if ! kubectl wait --for=condition=available -n "$MR_NAMESPACE" deployment/model-registry-db --timeout=5m ; then
43+
kubectl events -A
44+
kubectl describe deployment/model-registry-db -n kubeflow
45+
kubectl logs deployment/model-registry-db -n kubeflow
46+
exit 1
47+
fi
4348

4449
kubectl delete pod -n "$MR_NAMESPACE" --selector='component=model-registry-server'
4550

0 commit comments

Comments
 (0)