From 2813dfdc69068a041c985c2d480b4217196acfe4 Mon Sep 17 00:00:00 2001 From: bhuridech Date: Sun, 24 Mar 2024 10:00:28 +0700 Subject: [PATCH] add feature toggle for shipping fee --- infra/gitops/dev/configmap.yml | 1 + infra/gitops/dev/deployment.yml | 5 +++++ infra/gitops/prod/configmap.yml | 3 ++- infra/gitops/prod/deployment.yml | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/infra/gitops/dev/configmap.yml b/infra/gitops/dev/configmap.yml index 64d71e5..f173da7 100644 --- a/infra/gitops/dev/configmap.yml +++ b/infra/gitops/dev/configmap.yml @@ -8,4 +8,5 @@ data: db.username: "postgres" db.password: "YGSQOnBlYd+6" enabled.feature.promotion.list.api: "true" + enabled.shipping.fee: "true" \ No newline at end of file diff --git a/infra/gitops/dev/deployment.yml b/infra/gitops/dev/deployment.yml index dfbfb0c..89bddc3 100644 --- a/infra/gitops/dev/deployment.yml +++ b/infra/gitops/dev/deployment.yml @@ -40,6 +40,11 @@ spec: configMapKeyRef: name: app-config key: enabled.feature.promotion.list.api + - name: ENABLE_SHIPPING_FEE + valueFrom: + configMapKeyRef: + name: app-config + key: enabled.shipping.fee resources: limits: cpu: "1" diff --git a/infra/gitops/prod/configmap.yml b/infra/gitops/prod/configmap.yml index 21776ca..15ef88c 100644 --- a/infra/gitops/prod/configmap.yml +++ b/infra/gitops/prod/configmap.yml @@ -7,4 +7,5 @@ data: db.url: "jdbc:postgresql://ec2-13-250-18-96.ap-southeast-1.compute.amazonaws.com/prod-group-4" db.username: "postgres" db.password: "YGSQOnBlYd+6" - enabled.feature.promotion.list.api: "true" \ No newline at end of file + enabled.feature.promotion.list.api: "true" + enabled.shipping.fee: "true" \ No newline at end of file diff --git a/infra/gitops/prod/deployment.yml b/infra/gitops/prod/deployment.yml index 518903f..dc0fde3 100644 --- a/infra/gitops/prod/deployment.yml +++ b/infra/gitops/prod/deployment.yml @@ -40,6 +40,11 @@ spec: configMapKeyRef: name: app-config key: enabled.feature.promotion.list.api + - name: ENABLE_SHIPPING_FEE + valueFrom: + configMapKeyRef: + name: app-config + key: enabled.shipping.fee resources: limits: cpu: "1"