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 2ba669d feat: auto populate ingress_publish_service when using
etcdserver (#643)
2ba669d is described below
commit 2ba669d90df8d007eb631e9892c6d99a26c10b45
Author: zhuoyang <[email protected]>
AuthorDate: Mon Oct 16 15:54:08 2023 +0800
feat: auto populate ingress_publish_service when using etcdserver (#643)
---
charts/apisix-ingress-controller/templates/configmap.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/charts/apisix-ingress-controller/templates/configmap.yaml
b/charts/apisix-ingress-controller/templates/configmap.yaml
index 72bc687..d723094 100644
--- a/charts/apisix-ingress-controller/templates/configmap.yaml
+++ b/charts/apisix-ingress-controller/templates/configmap.yaml
@@ -24,7 +24,11 @@ data:
key_file: {{ .Values.config.keyFile | quote }}
http_listen: {{ .Values.config.httpListen | quote }}
https_listen: {{ .Values.config.httpsListen | quote }}
+ {{- if and (eq .Values.config.ingressPublishService "")
(.Values.config.etcdserver.enabled) }}
+ ingress_publish_service: {{ .Release.Namespace }}/{{ include
"apisix-ingress-controller.fullname" . }}-apisix-gateway
+ {{- else }}
ingress_publish_service: {{ .Values.config.ingressPublishService | quote }}
+ {{- end }}
{{- if gt (len .Values.config.ingressStatusAddress) 0 }}
ingress_status_address:
{{- range .Values.config.ingressStatusAddress }}