From 6ca450ba44b45b84160d2086f99128450a9c6a82 Mon Sep 17 00:00:00 2001 From: Sergiy Kulanov Date: Tue, 7 Jul 2026 20:34:19 +0300 Subject: [PATCH] EPMDEDP-17177: fix: default gatewayApi values to prevent nil-pointer render - Guard GATEWAY_NAME/GATEWAY_NAMESPACE env against an absent global.gatewayApi so the deployment template renders even when the key is unset or nulled - Fall back to the chart defaults (main-gateway/envoy-gateway-system) instead of failing helm template with a nil-pointer error Signed-off-by: Sergiy Kulanov --- deploy-templates/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-templates/templates/deployment.yaml b/deploy-templates/templates/deployment.yaml index bca1448e..1633e1de 100644 --- a/deploy-templates/templates/deployment.yaml +++ b/deploy-templates/templates/deployment.yaml @@ -66,9 +66,9 @@ spec: - name: INGRESS_CONTROLLER_TYPE value: "{{ .Values.ingressController }}" - name: GATEWAY_NAME - value: "{{ .Values.global.gatewayApi.gatewayName }}" + value: "{{ (.Values.global.gatewayApi | default dict).gatewayName | default "main-gateway" }}" - name: GATEWAY_NAMESPACE - value: "{{ .Values.global.gatewayApi.gatewayNamespace }}" + value: "{{ (.Values.global.gatewayApi | default dict).gatewayNamespace | default "envoy-gateway-system" }}" - name: TELEMETRY_ENABLED value: "{{ .Values.telemetryEnabled }}" - name: ENABLE_WEBHOOKS