From dbb1f91352b2c8fc4bb84d0cc65a78a574622c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20Fandi=C3=B1o?= <39286595+BetoFandino@users.noreply.github.com> Date: Fri, 9 Oct 2026 10:44:48 -0400 Subject: [PATCH] fix: remove MFE paths from ingresses (#195) The MFE paths in the CMS and LMS ingresses were a leftover from the old `DRYDOCK_BYPASS_CADDY` feature and caused duplicate paths. --- CHANGELOG.md | 9 +++++ drydock/templates/drydock/k8s/ingress/cms.yml | 20 ---------- drydock/templates/drydock/k8s/ingress/lms.yml | 38 ------------------- pyproject.toml | 2 +- uv.lock | 2 +- 5 files changed, 11 insertions(+), 60 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8e8f67..6db3d5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,15 @@ See the fragment files in the [changelog.d/ directory](./changelog.d). + +## 21.2.3 — 2026-10-09 + +### Fixed + +- Remove the per-MFE paths from the LMS and CMS ingresses. They were a leftover + from the removed Caddy bypass, all of them pointed to the same backend as the + `/` path, and they generated duplicated paths such as `/learning`. + ## 21.2.2 — 2026-06-02 diff --git a/drydock/templates/drydock/k8s/ingress/cms.yml b/drydock/templates/drydock/k8s/ingress/cms.yml index 61bec91..61f2037 100644 --- a/drydock/templates/drydock/k8s/ingress/cms.yml +++ b/drydock/templates/drydock/k8s/ingress/cms.yml @@ -14,26 +14,6 @@ spec: - host: {{ CMS_HOST }} http: paths: -{%- if MFE_DOCKER_IMAGE is defined %} -{%- for app_name, app in iter_mfes() %} -{%- if app_name == "authoring" %} - - pathType: Prefix - path: "/course-authoring" - backend: - service: - name: caddy - port: - number: 80 - - pathType: Prefix - path: "/{{app_name}}" - backend: - service: - name: caddy - port: - number: 80 -{%- endif %} -{%- endfor %} -{%- endif %} - pathType: Prefix path: "/" backend: diff --git a/drydock/templates/drydock/k8s/ingress/lms.yml b/drydock/templates/drydock/k8s/ingress/lms.yml index df273a1..7ea6d58 100644 --- a/drydock/templates/drydock/k8s/ingress/lms.yml +++ b/drydock/templates/drydock/k8s/ingress/lms.yml @@ -14,26 +14,6 @@ spec: - host: {{ LMS_HOST }} http: paths: - - pathType: Prefix - path: "/learning" - backend: - service: - name: caddy - port: - number: 80 -{%- if MFE_DOCKER_IMAGE is defined %} -{% for app_name, app in iter_mfes() %} -{%- if app_name != "authoring" %} - - pathType: Prefix - path: "/{{app_name}}" - backend: - service: - name: caddy - port: - number: 80 -{%- endif %} -{%- endfor %} -{%- endif %} - pathType: Prefix path: "/" backend: @@ -46,24 +26,6 @@ spec: - host: {{ host }} http: paths: - - pathType: Prefix - path: "/learning" - backend: - service: - name: caddy - port: - number: 80 -{%- if MFE_DOCKER_IMAGE is defined %} -{% for app_name, app in iter_mfes() %} - - pathType: Prefix - path: "/{{app_name}}" - backend: - service: - name: caddy - port: - number: 80 -{%- endfor %} -{%- endif %} - pathType: Prefix path: "/" backend: diff --git a/pyproject.toml b/pyproject.toml index b6ad1dc..f23f964 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tutor-contrib-drydock" -version = "21.2.2" +version = "21.2.3" description = "A Tutor plugin to manage our opinionated Open edX operations" readme = "README.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index 3a8f920..a2a781f 100644 --- a/uv.lock +++ b/uv.lock @@ -833,7 +833,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/26/d8/3d93bc551ba2e5035 [[package]] name = "tutor-contrib-drydock" -version = "21.2.2" +version = "21.2.3" source = { editable = "." } dependencies = [ { name = "tutor" },