You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by al...@apache.org on 2026/10/14 07:03:48 UTC

(apisix-helm-chart) branch master updated: fix(apisix): quote IP values in configmap so IPv6 addresses do not break YAML (#963)

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

AlinsRan 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 f7fc303  fix(apisix): quote IP values in configmap so IPv6 addresses do not break YAML (#963)
f7fc303 is described below

commit f7fc303c2164c4b2602ee02ea07a96e02e952fe3
Author: Sai Asish Y <sa...@gmail.com>
AuthorDate: Wed Oct 14 00:03:42 2026 -0700

    fix(apisix): quote IP values in configmap so IPv6 addresses do not break YAML (#963)
---
 charts/apisix/templates/configmap.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index dba67cb..e48064c 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -62,7 +62,7 @@ data:
       enable_control: {{ .Values.control.enabled }}
       {{- if .Values.control.enabled }}
       control:
-        ip: {{ default "127.0.0.1" .Values.control.service.ip }}
+        ip: {{ default "127.0.0.1" .Values.control.service.ip | quote }}
         port: {{ default 9090 .Values.control.service.port }}
       {{- end }}
 
@@ -191,7 +191,7 @@ data:
       {{- $useTraditionalYaml := and (eq .Values.apisix.deployment.role "traditional") (eq .Values.apisix.deployment.role_traditional.config_provider "yaml") }}
       {{- if $useTraditionalYaml }}
       status:
-        ip: {{ default "127.0.0.1" .Values.apisix.status.ip }}
+        ip: {{ default "127.0.0.1" .Values.apisix.status.ip | quote }}
         port: {{ default "7085" (.Values.apisix.status.port | toString) }}
       {{- end}}
 
@@ -382,7 +382,7 @@ data:
         allow_admin:    # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
         {{- if .Values.apisix.admin.allow.ipList }}
         {{- range $ips := .Values.apisix.admin.allow.ipList }}
-          - {{ $ips }}
+          - {{ $ips | quote }}
         {{- end }}
         {{- else }}
           - 0.0.0.0/0
@@ -393,7 +393,7 @@ data:
         #   - "::/64"
         {{- if .Values.apisix.admin.enabled }}
         admin_listen:
-          ip: {{ .Values.apisix.admin.ip }}
+          ip: {{ .Values.apisix.admin.ip | quote }}
           port: {{ .Values.apisix.admin.port }}
         {{- end }}
         # Default token when use API to call for Admin API.