From 5d25ed744284376f43563285584b2665304b82b9 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 24 Sep 2024 06:46:37 -0500 Subject: [PATCH] fix: correctly mount pythonpath module --- tutoraspects/patches/k8s-deployments | 15 +++++++++++++++ tutoraspects/patches/k8s-jobs | 10 ++++++++++ .../patches/kustomization-configmapgenerator | 7 +++++++ 3 files changed, 32 insertions(+) diff --git a/tutoraspects/patches/k8s-deployments b/tutoraspects/patches/k8s-deployments index e263a27ed..0e49c648e 100644 --- a/tutoraspects/patches/k8s-deployments +++ b/tutoraspects/patches/k8s-deployments @@ -216,6 +216,8 @@ spec: name: docker - mountPath: /app/pythonpath name: pythonpath + - mountPath: /app/pythonpath/openedx + name: pythonpath - mountPath: /app/security name: security volumes: @@ -225,6 +227,9 @@ spec: - name: pythonpath configMap: name: superset-pythonpath + - name: pythonpath-openedx + configMap: + name: superset-pythonpath-openedx - name: security configMap: name: superset-security @@ -305,6 +310,8 @@ spec: name: docker - mountPath: /app/pythonpath name: pythonpath + - mountPath: /app/pythonpath/openedx + name: pythonpath - mountPath: /app/security name: security - mountPath: /app/scripts @@ -316,6 +323,9 @@ spec: - name: pythonpath configMap: name: superset-pythonpath + - name: pythonpath-openedx + configMap: + name: superset-pythonpath-openedx - name: security configMap: name: superset-security @@ -399,6 +409,8 @@ spec: name: docker - mountPath: /app/pythonpath name: pythonpath + - mountPath: /app/pythonpath/openedx + name: pythonpath - mountPath: /app/security name: security volumes: @@ -408,6 +420,9 @@ spec: - name: pythonpath configMap: name: superset-pythonpath + - name: pythonpath-openedx + configMap: + name: superset-pythonpath-openedx - name: security configMap: name: superset-security diff --git a/tutoraspects/patches/k8s-jobs b/tutoraspects/patches/k8s-jobs index 4d8591e0a..68f2973c4 100644 --- a/tutoraspects/patches/k8s-jobs +++ b/tutoraspects/patches/k8s-jobs @@ -162,6 +162,8 @@ spec: name: docker - mountPath: /app/pythonpath name: pythonpath + - mountPath: /app/pythonpath/openedx + name: pythonpath - mountPath: /app/security name: security - mountPath: /app/assets @@ -175,6 +177,9 @@ spec: - name: pythonpath configMap: name: superset-pythonpath + - name: pythonpath-openedx + configMap: + name: superset-pythonpath-openedx - name: security configMap: name: superset-security @@ -246,6 +251,8 @@ spec: name: docker - mountPath: /app/pythonpath name: pythonpath + - mountPath: /app/pythonpath/openedx + name: pythonpath - mountPath: /app/security name: security - mountPath: /app/assets @@ -257,6 +264,9 @@ spec: - name: pythonpath configMap: name: superset-pythonpath + - name: pythonpath-openedx + configMap: + name: superset-pythonpath-openedx - name: security configMap: name: superset-security diff --git a/tutoraspects/patches/kustomization-configmapgenerator b/tutoraspects/patches/kustomization-configmapgenerator index 2e73d29cb..b984130dd 100644 --- a/tutoraspects/patches/kustomization-configmapgenerator +++ b/tutoraspects/patches/kustomization-configmapgenerator @@ -80,6 +80,13 @@ labels: app.kubernetes.io/name: superset +- name: superset-pythonpath-openedx + files:{% for file in "aspects/apps/superset/pythonpath/openedx"|walk_templates %} + - plugins/{{ file }}{% endfor %} + options: + labels: + app.kubernetes.io/name: superset + - name: superset-security files: - plugins/aspects/apps/superset/security/roles.json