From e7a9dcf13a4243442b05a831dc99e2186de1d1a8 Mon Sep 17 00:00:00 2001 From: Krzysztof Hoffmann Date: Thu, 30 Nov 2023 08:49:35 +0100 Subject: [PATCH] fix: add paymentprocessors.json to k8s deployments and kustomization-configmapgenerator --- tutorecommerce/patches/k8s-deployments | 6 ++++++ tutorecommerce/patches/k8s-jobs | 5 ++++- tutorecommerce/patches/kustomization-configmapgenerator | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tutorecommerce/patches/k8s-deployments b/tutorecommerce/patches/k8s-deployments index 27041f2f..4ee6167f 100644 --- a/tutorecommerce/patches/k8s-deployments +++ b/tutorecommerce/patches/k8s-deployments @@ -29,6 +29,9 @@ spec: - mountPath: /openedx/ecommerce/ecommerce/settings/tutor/production.py name: settings subPath: production.py + - mountPath: /openedx/ecommerce/ecommerce/settings/tutor/paymentprocessors.json + name: settings + subPath: paymentprocessors.json securityContext: allowPrivilegeEscalation: false volumes: @@ -68,6 +71,9 @@ spec: - 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 + name: settings + subPath: paymentprocessors.json securityContext: allowPrivilegeEscalation: false volumes: diff --git a/tutorecommerce/patches/k8s-jobs b/tutorecommerce/patches/k8s-jobs index e1852e5e..f628d9f4 100644 --- a/tutorecommerce/patches/k8s-jobs +++ b/tutorecommerce/patches/k8s-jobs @@ -19,7 +19,10 @@ spec: - mountPath: /openedx/ecommerce/ecommerce/settings/tutor/production.py name: settings subPath: production.py + - mountPath: /openedx/ecommerce/ecommerce/settings/tutor/paymentprocessors.json + name: settings + subPath: paymentprocessors.json volumes: - name: settings configMap: - name: ecommerce-settings \ No newline at end of file + name: ecommerce-settings diff --git a/tutorecommerce/patches/kustomization-configmapgenerator b/tutorecommerce/patches/kustomization-configmapgenerator index 3ede00d4..6625f5e2 100644 --- a/tutorecommerce/patches/kustomization-configmapgenerator +++ b/tutorecommerce/patches/kustomization-configmapgenerator @@ -1,6 +1,8 @@ - name: ecommerce-settings files: - plugins/ecommerce/apps/ecommerce/settings/production.py + - plugins/ecommerce/apps/ecommerce/settings/paymentprocessors.json - name: ecommerce-worker-settings files: - - plugins/ecommerce/apps/ecommerce-worker/settings/production.py \ No newline at end of file + - plugins/ecommerce/apps/ecommerce-worker/settings/production.py + - plugins/ecommerce/apps/ecommerce/settings/paymentprocessors.json