From 95ca857827dc241324480367d9f86a7895344b48 Mon Sep 17 00:00:00 2001 From: bhuridech Date: Sun, 24 Mar 2024 09:57:31 +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 dcdcc74..fe36d3c 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 ff4ba41..1cac6a0 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 e83bf0a..33d91db 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-2" 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 452230e..fa2603f 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"