Skip to content

Commit ce10abb

Browse files
committed
Revert removal (keep AppArmor) and change script
This reverts commit e00cd80. trying with replacing with apparmor-utils
1 parent 6c1a4c8 commit ce10abb

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
BRANCH: ${{ github.base_ref }}
2020
jobs:
2121
build-and-test-image:
22-
runs-on: ubuntu-24.04
22+
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Generate Tag
@@ -38,6 +38,11 @@ jobs:
3838
uses: helm/[email protected]
3939
with:
4040
node_image: "kindest/node:v1.27.11"
41+
- name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507
42+
run: |
43+
set -x
44+
sudo apt install apparmor-utils
45+
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
4146
- name: Load Local Registry Test Image
4247
env:
4348
IMG: "${{ env.IMG_REGISTRY }}/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"

.github/workflows/csi-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030
BRANCH: ${{ github.base_ref }}
3131
jobs:
3232
build-and-test-csi-image:
33-
runs-on: ubuntu-24.04
33+
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v4
3636

@@ -65,6 +65,12 @@ jobs:
6565
with:
6666
node_image: "kindest/node:v1.27.11"
6767

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

.github/workflows/python-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
115115
test:
116116
name: Test against Py ${{ matrix.python }} and K8s ${{ matrix.kubernetes-version }}
117-
runs-on: ubuntu-24.04
117+
runs-on: ubuntu-latest
118118
strategy:
119119
fail-fast: false
120120
matrix:
@@ -194,6 +194,11 @@ jobs:
194194
node_image: kindest/node:${{ matrix.kubernetes-version }}
195195
cluster_name: chart-testing-py-${{ matrix.python }}
196196
kubectl_version: ${{ matrix.kubernetes-version }}
197+
- name: Remove AppArmor profile for mysql in KinD on GHA # https://github.com/kubeflow/manifests/issues/2507
198+
run: |
199+
set -x
200+
sudo apt install apparmor-utils
201+
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
197202
- name: Load Local Registry Test Image
198203
env:
199204
IMG: "${{ env.IMG_REGISTRY }}/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"

0 commit comments

Comments
 (0)