From 368c726b0b38f635bba39b846b1a4228c14aaead Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 17 Mar 2025 22:37:27 +0800 Subject: [PATCH] feat: add METRICS_ENABLED and PROBES_ENABLED environment variables to deployment configurations Signed-off-by: zhenyus --- .../templates/authentication/deployment.yaml | 12 +++++++++++- .../templates/central-storage/deployment.yaml | 12 +++++++++++- .../content/templates/content/deployment.yaml | 12 +++++++++++- .../templates/notification/deployment.yaml | 12 +++++++++++- .../payment/templates/payment/deployment.yaml | 12 +++++++++++- 5 files changed, 55 insertions(+), 5 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml index cfb4072d..7b48a281 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml @@ -92,4 +92,14 @@ spec: secretKeyRef: name: authentication-config key: {{ $key | snakecase | upper }} - {{- end }} \ No newline at end of file + {{- end }} + - name: METRICS_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: METRICS_ENABLED + - name: PROBES_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: PROBES_ENABLED diff --git a/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml b/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml index 7ae73c4e..4cea438e 100644 --- a/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml +++ b/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml @@ -92,4 +92,14 @@ spec: secretKeyRef: name: central-storage-config key: {{ $key | snakecase | upper }} - {{- end }} \ No newline at end of file + {{- end }} + - name: METRICS_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: METRICS_ENABLED + - name: PROBES_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: PROBES_ENABLED \ No newline at end of file diff --git a/freeleaps/helm-pkg/content/templates/content/deployment.yaml b/freeleaps/helm-pkg/content/templates/content/deployment.yaml index abd44d69..37924b09 100644 --- a/freeleaps/helm-pkg/content/templates/content/deployment.yaml +++ b/freeleaps/helm-pkg/content/templates/content/deployment.yaml @@ -92,4 +92,14 @@ spec: secretKeyRef: name: content-config key: {{ $key | snakecase | upper }} - {{- end }} \ No newline at end of file + {{- end }} + - name: METRICS_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: METRICS_ENABLED + - name: PROBES_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: PROBES_ENABLED \ No newline at end of file diff --git a/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml b/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml index ef8c08aa..2c288a59 100644 --- a/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml +++ b/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml @@ -92,4 +92,14 @@ spec: secretKeyRef: name: notification-config key: {{ $key | snakecase | upper }} - {{- end }} \ No newline at end of file + {{- end }} + - name: METRICS_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: METRICS_ENABLED + - name: PROBES_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: PROBES_ENABLED diff --git a/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml b/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml index 9d3d4019..a878d584 100644 --- a/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml +++ b/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml @@ -92,4 +92,14 @@ spec: secretKeyRef: name: payment-config key: {{ $key | snakecase | upper }} - {{- end }} \ No newline at end of file + {{- end }} + - name: METRICS_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: METRICS_ENABLED + - name: PROBES_ENABLED + valueFrom: + secretKeyRef: + name: authentication-config + key: PROBES_ENABLED \ No newline at end of file