Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed May 14, 2024
1 parent cb1abcb commit f274145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/gateway-helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ imagePullSecrets: []
{{- end }}
{{- end }}

{{- define "envoy-gateway-config" -}}
{{- define "eg.default-envoy-gateway-config" -}}
provider:
type: Kubernetes
kubernetes:
Expand Down
2 changes: 1 addition & 1 deletion charts/gateway-helm/templates/envoy-gateway-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit f274145

Please sign in to comment.