From b6289a150250da36bd7a0c68f752889bd73bd61e Mon Sep 17 00:00:00 2001 From: Krzysztof Hoffmann Date: Thu, 7 Dec 2023 21:56:18 +0100 Subject: [PATCH] feat: add all files from directory --- tutorecommerce/patches/k8s-deployments | 12 ++---------- tutorecommerce/patches/k8s-jobs | 6 +----- .../patches/kustomization-configmapgenerator | 10 ++++------ 3 files changed, 7 insertions(+), 21 deletions(-) diff --git a/tutorecommerce/patches/k8s-deployments b/tutorecommerce/patches/k8s-deployments index 4ee6167f..bc806b35 100644 --- a/tutorecommerce/patches/k8s-deployments +++ b/tutorecommerce/patches/k8s-deployments @@ -26,12 +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 - - mountPath: /openedx/ecommerce/ecommerce/settings/tutor/paymentprocessors.json - name: settings - subPath: paymentprocessors.json securityContext: allowPrivilegeEscalation: false volumes: @@ -68,12 +64,8 @@ spec: - name: C_FORCE_ROOT value: "1" volumeMounts: - - mountPath: /openedx/ecommerce_worker/ecommerce_worker/configuration/tutor/production.py - name: settings - subPath: production.py - - mountPath: /openedx/ecommerce_worker/ecommerce_worker/configuration/tutor/paymentprocessors.json + - mountPath: /openedx/ecommerce_worker/ecommerce_worker/configuration/tutor/ name: settings - subPath: paymentprocessors.json securityContext: allowPrivilegeEscalation: false volumes: diff --git a/tutorecommerce/patches/k8s-jobs b/tutorecommerce/patches/k8s-jobs index f628d9f4..ef5cb8a1 100644 --- a/tutorecommerce/patches/k8s-jobs +++ b/tutorecommerce/patches/k8s-jobs @@ -16,12 +16,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 - - mountPath: /openedx/ecommerce/ecommerce/settings/tutor/paymentprocessors.json - name: settings - subPath: paymentprocessors.json volumes: - name: settings configMap: diff --git a/tutorecommerce/patches/kustomization-configmapgenerator b/tutorecommerce/patches/kustomization-configmapgenerator index 6625f5e2..6c1537fb 100644 --- a/tutorecommerce/patches/kustomization-configmapgenerator +++ b/tutorecommerce/patches/kustomization-configmapgenerator @@ -1,8 +1,6 @@ - name: ecommerce-settings - files: - - plugins/ecommerce/apps/ecommerce/settings/production.py - - plugins/ecommerce/apps/ecommerce/settings/paymentprocessors.json + 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 - - plugins/ecommerce/apps/ecommerce/settings/paymentprocessors.json + files:{% for file in "ecommerce/apps/ecommerce-worker/settings"|walk_templates %} + - plugins/{{ file }}{% endfor %}