This is an automated email from the ASF dual-hosted git repository. zhangjintao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push: new 08c69d4 Fix condition to use gateway.externalIPs (#188) 08c69d4 is described below commit 08c69d4363a9f46e900ad0b084a74b53e21b40ea Author: Silas Parker <silas+git...@srp.me.uk> AuthorDate: Tue Dec 7 07:00:17 2021 +0000 Fix condition to use gateway.externalIPs (#188) --- charts/apisix/templates/service-gateway.yaml | 2 +- charts/apisix/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/apisix/templates/service-gateway.yaml b/charts/apisix/templates/service-gateway.yaml index 6d99468..3a1d4c2 100644 --- a/charts/apisix/templates/service-gateway.yaml +++ b/charts/apisix/templates/service-gateway.yaml @@ -40,7 +40,7 @@ spec: {{- end }} {{- end }} {{- end }} - {{- if gt (len .Values.admin.externalIPs) 0 }} + {{- if gt (len .Values.gateway.externalIPs) 0 }} externalIPs: {{- range $ip := .Values.gateway.externalIPs }} - {{ $ip }} diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml index d150b17..c30d6c9 100644 --- a/charts/apisix/values.yaml +++ b/charts/apisix/values.yaml @@ -82,6 +82,7 @@ gateway: # type: LoadBalancer # annotations: # service.beta.kubernetes.io/aws-load-balancer-type: nlb + externalIPs: [] http: enabled: true servicePort: 80