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 f46b547 fix:service discovery minimal Kubernetes (#526)
f46b547 is described below
commit f46b54735f0179eb8c074aca9168045a8089fe1c
Author: Gallardot <[email protected]>
AuthorDate: Wed Apr 12 15:47:56 2023 +0800
fix:service discovery minimal Kubernetes (#526)
Signed-off-by: Gallardot <[email protected]>
---
charts/apisix/templates/configmap.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/charts/apisix/templates/configmap.yaml
b/charts/apisix/templates/configmap.yaml
index 5fc970b..26a669b 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -208,8 +208,12 @@ data:
{{- if .Values.discovery.enabled }}
discovery:
{{- range $key, $value := .Values.discovery.registry }}
+ {{- if $value }}
{{ $key }}:
{{- include "apisix.tplvalues.render" (dict "value" $value "context"
$) | nindent 8 }}
+ {{- else }}
+ {{ $key }}: {}
+ {{- end }}
{{- end }}
{{- end }}