You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2022/01/25 11:28:53 UTC

[apisix-helm-chart] branch master updated: feat: Expose enable_ipv6 to Values (#218)

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

tokers 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 daf1cc9  feat: Expose enable_ipv6 to Values (#218)
daf1cc9 is described below

commit daf1cc93f55689bc8f317e0f9e8cfbb01e012d9c
Author: Hao Xin <ha...@gmail.com>
AuthorDate: Tue Jan 25 19:28:46 2022 +0800

    feat: Expose enable_ipv6 to Values (#218)
---
 charts/apisix/README.md                |  3 ++-
 charts/apisix/templates/configmap.yaml | 10 +++++-----
 charts/apisix/values.yaml              |  3 +++
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/charts/apisix/README.md b/charts/apisix/README.md
index d036f0a..8c9d56b 100644
--- a/charts/apisix/README.md
+++ b/charts/apisix/README.md
@@ -61,6 +61,7 @@ The following tables lists the configurable parameters of the apisix chart and t
 | Parameter                                | Description                                         | Default                                                 |
 |------------------------------------------|-----------------------------------------------------|---------------------------------------------------------|
 | `apisix.enabled`                         | Enable or disable Apache APISIX itself              | `true`                                                  |
+| `apisix.enableIPv6`                      | Enable nginx IPv6 resolver                          | `true`                                                  |
 | `apisix.image.repository`                | Apache APISIX image repository                      | `apache/apisix`                                         |
 | `apisix.image.tag`                       | Apache APISIX image tag                             | `{TAG_NAME}` (the latest Apache APISIX image tag)       |
 | `apisix.image.pullPolicy`                | Apache APISIX image pull policy                     | `IfNotPresent`                                          |
@@ -145,7 +146,7 @@ Apache APISIX service parameters, this determines how users can access itself.
 
 If etcd.enabled is true, set more values of bitnami/etcd helm chart use etcd as prefix.
 
-### plugins and stream_plugins parameters 
+### plugins and stream_plugins parameters
 
 Default enabled plugins. See [configmap template](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/templates/configmap.yaml) for details.
 
diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index 90c6122..445ebe3 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -44,11 +44,6 @@ data:
       enable_admin: {{ .Values.admin.enabled }}
       enable_admin_cors: {{ .Values.admin.cors }}
       enable_debug: false
-      enable_dev_mode: false          # Sets nginx worker_processes to 1 if set to true
-      enable_reuseport: true          # Enable nginx SO_REUSEPORT switch if set to true.
-      enable_ipv6: true
-      config_center: etcd             # etcd: use etcd to store the config value
-                                      # yaml: fetch the config value from local yaml file `/your_path/conf/apisix.yaml`
       {{- if or .Values.customPlugins.enabled .Values.apisix.luaModuleHook.enabled }}
       extra_lua_path: {{ .Values.customPlugins.luaPath }};{{ .Values.apisix.luaModuleHook.luaPath }}
       {{- end }}
@@ -57,6 +52,11 @@ data:
       lua_module_hook: {{ .Values.apisix.luaModuleHook.hookPoint | quote }}
       {{- end }}
 
+      enable_dev_mode: false                       # Sets nginx worker_processes to 1 if set to true
+      enable_reuseport: true                       # Enable nginx SO_REUSEPORT switch if set to true.
+      enable_ipv6: {{ .Values.apisix.enableIPv6 }} # Enable nginx IPv6 resolver
+      config_center: etcd                          # etcd: use etcd to store the config value
+                                                   # yaml: fetch the config value from local yaml file `/your_path/conf/apisix.yaml`
 
       #proxy_protocol:                 # Proxy Protocol configuration
       #  listen_http_port: 9181        # The port with proxy protocol for http, it differs from node_listen and port_admin.
diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml
index 34ac569..45dbceb 100644
--- a/charts/apisix/values.yaml
+++ b/charts/apisix/values.yaml
@@ -23,6 +23,9 @@ apisix:
   # Set it to false and ingress-controller.enabled=true will deploy only ingress-controller
   enabled: true
 
+  # Enable nginx IPv6 resolver
+  enableIPv6: true
+
   # Use Pod metadata.uid as the APISIX id.
   setIDFromPodUID: false