Skip to content

Commit

Permalink
fix: correctly mount pythonpath module
Browse files Browse the repository at this point in the history
fix: deduplicate mount volume name
  • Loading branch information
Ian2012 committed Sep 30, 2024
1 parent 404d974 commit ea90a73
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
15 changes: 15 additions & 0 deletions tutoraspects/patches/k8s-deployments
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ spec:
name: docker
- mountPath: /app/pythonpath
name: pythonpath
- mountPath: /app/pythonpath/openedx
name: pythonpath-openedx
- mountPath: /app/security
name: security
volumes:
Expand All @@ -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
Expand Down Expand Up @@ -305,6 +310,8 @@ spec:
name: docker
- mountPath: /app/pythonpath
name: pythonpath
- mountPath: /app/pythonpath/openedx
name: pythonpath-openedx
- mountPath: /app/security
name: security
- mountPath: /app/scripts
Expand All @@ -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
Expand Down Expand Up @@ -399,6 +409,8 @@ spec:
name: docker
- mountPath: /app/pythonpath
name: pythonpath
- mountPath: /app/pythonpath/openedx
name: pythonpath-openedx
- mountPath: /app/security
name: security
volumes:
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions tutoraspects/patches/k8s-jobs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ spec:
name: docker
- mountPath: /app/pythonpath
name: pythonpath
- mountPath: /app/pythonpath/openedx
name: pythonpath-openedx
- mountPath: /app/security
name: security
- mountPath: /app/assets
Expand All @@ -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
Expand Down Expand Up @@ -246,6 +251,8 @@ spec:
name: docker
- mountPath: /app/pythonpath
name: pythonpath
- mountPath: /app/pythonpath/openedx
name: pythonpath-openedx
- mountPath: /app/security
name: security
- mountPath: /app/assets
Expand All @@ -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
Expand Down
9 changes: 8 additions & 1 deletion tutoraspects/patches/kustomization-configmapgenerator
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@
app.kubernetes.io/name: superset

- name: superset-pythonpath
files:{% for file in "aspects/apps/superset/pythonpath"|walk_templates %}
files:{% for file in "aspects/apps/superset/pythonpath/"|walk_templates %}
- plugins/{{ file }}{% endfor %}
options:
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:
Expand Down

0 comments on commit ea90a73

Please sign in to comment.