Skip to content

Commit

Permalink
fix: missing settings in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmannkrzysztof committed Dec 9, 2023
1 parent 25d8fc6 commit 1a2d7f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
1 change: 1 addition & 0 deletions changelog.d/20231209_161942_krzysiekpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Fix] Change mounting volumes entries for ecommerce and worker while using k8s setup. (by @hoffmannkrzysztof)
6 changes: 2 additions & 4 deletions tutorecommerce/patches/k8s-deployments
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ spec:
- name: DJANGO_SETTINGS_MODULE
value: ecommerce.settings.tutor.production
volumeMounts:
- mountPath: /openedx/ecommerce/ecommerce/settings/tutor/production.py
- mountPath: /openedx/ecommerce/ecommerce/settings/tutor/
name: settings
subPath: production.py
securityContext:
allowPrivilegeEscalation: false
volumes:
Expand Down Expand Up @@ -65,9 +64,8 @@ spec:
- name: C_FORCE_ROOT
value: "1"
volumeMounts:
- mountPath: /openedx/ecommerce_worker/ecommerce_worker/configuration/tutor/production.py
- mountPath: /openedx/ecommerce_worker/ecommerce_worker/configuration/tutor/
name: settings
subPath: production.py
securityContext:
allowPrivilegeEscalation: false
volumes:
Expand Down
5 changes: 2 additions & 3 deletions tutorecommerce/patches/k8s-jobs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ spec:
- name: DJANGO_SETTINGS_MODULE
value: ecommerce.settings.tutor.production
volumeMounts:
- mountPath: /openedx/ecommerce/ecommerce/settings/tutor/production.py
- mountPath: /openedx/ecommerce/ecommerce/settings/tutor/
name: settings
subPath: production.py
volumes:
- name: settings
configMap:
name: ecommerce-settings
name: ecommerce-settings
8 changes: 4 additions & 4 deletions tutorecommerce/patches/kustomization-configmapgenerator
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: ecommerce-settings
files:
- plugins/ecommerce/apps/ecommerce/settings/production.py
files:{% for file in "ecommerce/apps/ecommerce/settings"|walk_templates %}
- plugins/{{ file }}{% endfor %}
- name: ecommerce-worker-settings
files:
- plugins/ecommerce/apps/ecommerce-worker/settings/production.py
files:{% for file in "ecommerce/apps/ecommerce-worker/settings"|walk_templates %}
- plugins/{{ file }}{% endfor %}

0 comments on commit 1a2d7f9

Please sign in to comment.