Skip to content

Commit 3bd0342

Browse files
fix(Gateway): fix duplicate GATEWAY_SECURED_METRICS env (#175)
* Update chart gateway version to 3.7.1 * Fix potential duplicate GATEWAY_SECURED_METRICS environment * Update charts/gateway/Chart.yaml --------- Co-authored-by: ConduktorBot <[email protected]>
1 parent e2ea399 commit 3bd0342

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/gateway/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Get the first admin user from the list of users
146146

147147
{{/*
148148
Check if env exist in context
149-
149+
Usage : include "conduktor-gateway.envExists" (dict "envkey" "ENV_VAR_NAME" "context" $)
150150
Params:
151151
- envKey - String - Required - Name of the env.
152152
- context - Context - Required - Parent context.

charts/gateway/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ spec:
5454
- name: JAVA_TOOL_OPTIONS
5555
value: {{ tpl .Values.gateway.jmx.jvmArgs . | quote }}
5656
{{- end}}
57+
{{- if eq (include "conduktor-gateway.envExists" (dict "envkey" "GATEWAY_SECURED_METRICS" "context" $)) "false" }}
5758
- name: GATEWAY_SECURED_METRICS
5859
value: {{ .Values.gateway.admin.securedMetrics | quote }}
60+
{{- end}}
5961
{{- if and .Values.gateway.userPool .Values.gateway.userPool.serviceAccountRequired }}
6062
- name: GATEWAY_USER_POOL_SERVICE_ACCOUNT_REQUIRED
6163
value: {{ .Values.gateway.userPool.serviceAccountRequired | quote }}

0 commit comments

Comments
 (0)