Skip to content

Commit

Permalink
Fix conditional for gatewayclassconfig address
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Eckert committed Nov 11, 2022
1 parent 18a4cfe commit 66b9de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/consul/templates/api-gateway-gatewayclassconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ metadata:
component: api-gateway
spec:
consul:
{{- if and .Values.externalServers.enabled (not .Values.client.enabled) }}
address: {{ first .Values.externalServers.hosts }}
{{- else if and (not .Values.externalServers.enabled) .Values.client.enabled }}
{{- if .Values.client.enabled }}
address: $(HOST_IP)
{{- else if .Values.externalServers.enabled }}
address: {{ first .Values.externalServers.hosts }}
{{- else }}
address: {{ template "consul.fullname" . }}-server
{{- end }}
Expand Down

0 comments on commit 66b9de1

Please sign in to comment.