This is an automated email from the ASF dual-hosted git repository.

kvn 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 cb02576  chore: If ingress-controller is enabled, allow it 
automatically (#101)
cb02576 is described below

commit cb02576bd0e6e1b0b16516aebce824c320f8c98c
Author: Jintao Zhang <[email protected]>
AuthorDate: Sat Jun 12 22:03:38 2021 +0800

    chore: If ingress-controller is enabled, allow it automatically (#101)
    
    * chore: If ingress-controller is enabled, allow it automatically
    
    Signed-off-by: Jintao Zhang <[email protected]>
    
    * chore: allow dashboard also
    
    Signed-off-by: Jintao Zhang <[email protected]>
---
 charts/apisix/templates/configmap.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/charts/apisix/templates/configmap.yaml 
b/charts/apisix/templates/configmap.yaml
index 0696f7e..f4df442 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -82,6 +82,9 @@ data:
       {{- else }}
         - 0.0.0.0/0
       {{- end}}
+      {{- if or (index .Values "ingress-controller" "enabled") 
.Values.dashboard.enabled  }}
+        - 0.0.0.0/0
+      {{- end}}
       #   - "::/64"
       {{- if .Values.admin.enabled }}
       port_admin: {{ .Values.admin.port }}

Reply via email to