From 94a03f31cd13e1030b6666f6ded16b74f2c26d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Gonz=C3=A1lez?= Date: Thu, 13 Aug 2026 16:42:09 -0400 Subject: [PATCH] fix(k8s): reference the proper ConfigMap name for the settings --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- tutorcodejail/patches/k8s-deployments | 10 +++++----- uv.lock | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bb099f..2c1376c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,14 @@ See the fragment files in the [changelog.d/ directory](./changelog.d). + +## 22.0.1 — 2026-08-13 + +### Fixed + +- The kubernetes deployment was using and incorrect ConfigMap name when mounting + the settings file. + ## 22.0.0 — 2026-08-12 diff --git a/pyproject.toml b/pyproject.toml index 3a85430..e9a6bfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tutor-contrib-codejail" -version = "22.0.0" +version = "22.0.1" description = "Codejail plugin for Tutor" readme = "README.md" license-files = ["LICENSE"] diff --git a/tutorcodejail/patches/k8s-deployments b/tutorcodejail/patches/k8s-deployments index f9dec16..6f8e701 100644 --- a/tutorcodejail/patches/k8s-deployments +++ b/tutorcodejail/patches/k8s-deployments @@ -15,7 +15,7 @@ spec: app.kubernetes.io/name: codejail spec: securityContext: - appArmorProfile: + appArmorProfile: type: Localhost localhostProfile: openedx_codejail_service containers: @@ -28,12 +28,12 @@ spec: value: codejail_service.settings.tutor volumeMounts: - mountPath: /app/codejail_service/settings/tutor.py - name: settings-codejail + name: codejail-settings subPath: tutor.py volumes: - - name: settings-codejail + - name: codejail-settings configMap: - name: settings-codejail + name: codejail-settings {% if CODEJAIL_ENABLE_K8S_DAEMONSET %} --- apiVersion: apps/v1 @@ -54,7 +54,7 @@ spec: spec: containers: - name: apparmor-loader - image: {{ CODEJAIL_APPARMOR_DOCKER_IMAGE }} + image: {{ CODEJAIL_APPARMOR_DOCKER_IMAGE }} command: - /usr/bin/loader - -logtostderr diff --git a/uv.lock b/uv.lock index a07052c..5e895f6 100644 --- a/uv.lock +++ b/uv.lock @@ -1482,7 +1482,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/d7/6c/f58136bcbc099fb97 [[package]] name = "tutor-contrib-codejail" -version = "22.0.0" +version = "22.0.1" source = { editable = "." } dependencies = [ { name = "tutor" },