diff --git a/charts/gateway-helm/templates/_helpers.tpl b/charts/gateway-helm/templates/_helpers.tpl index ad0f55f860e..91a3ca545cc 100755 --- a/charts/gateway-helm/templates/_helpers.tpl +++ b/charts/gateway-helm/templates/_helpers.tpl @@ -83,7 +83,7 @@ imagePullSecrets: [] {{- end }} {{- end }} -{{- define "envoy-gateway-config" -}} +{{- define "eg.default-envoy-gateway-config" -}} provider: type: Kubernetes kubernetes: diff --git a/charts/gateway-helm/templates/envoy-gateway-config.yaml b/charts/gateway-helm/templates/envoy-gateway-config.yaml index 9098a686605..8fc1d2dfb63 100644 --- a/charts/gateway-helm/templates/envoy-gateway-config.yaml +++ b/charts/gateway-helm/templates/envoy-gateway-config.yaml @@ -9,7 +9,7 @@ data: envoy-gateway.yaml: | apiVersion: gateway.envoyproxy.io/v1alpha1 kind: EnvoyGateway - {{- $baseEnvoyGatewayConfig := include "envoy-gateway-config" . | fromYaml }} + {{- $baseEnvoyGatewayConfig := include "eg.default-envoy-gateway-config" . | fromYaml }} {{- $userEnvoyGatewayConfig := .Values.config.envoyGateway }} {{- $mergedEnvoyGatewayConfig := merge $userEnvoyGatewayConfig $baseEnvoyGatewayConfig }} {{- toYaml $mergedEnvoyGatewayConfig | nindent 4 }}