You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2023/04/12 07:48:01 UTC

[apisix-helm-chart] branch master updated: fix:service discovery minimal Kubernetes (#526)

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 <ga...@apache.org>
AuthorDate: Wed Apr 12 15:47:56 2023 +0800

    fix:service discovery minimal Kubernetes (#526)
    
    Signed-off-by: Gallardot <ga...@apache.org>
---
 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 }}