Skip to content

Commit a3ebe12

Browse files
committed
Add trusted_addresses option to apisix configmap template
1 parent 379ab73 commit a3ebe12

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

charts/apisix/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type: application
3131
# This is the chart version. This version number should be incremented each time you make changes
3232
# to the chart and its templates, including the app version.
3333
# Versions are expected to follow Semantic Versioning (https://semver.org/)
34-
version: 2.12.3
34+
version: 2.12.4
3535

3636
# This is the version number of the application being deployed. This version number should be
3737
# incremented each time you make changes to the application. Versions are not expected to

charts/apisix/templates/configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ data:
176176
port: {{ default "7085" (.Values.apisix.status.port | toString) }}
177177
{{- end}}
178178
179+
{{ if .Values.apisix.trusted_addresses }}
180+
trusted_addresses:
181+
{{- toYaml .Values.apisix.trusted_addresses | nindent 8 }}
182+
{{ end }}
183+
179184
nginx_config: # config for render the template to genarate nginx.conf
180185
error_log: "{{ .Values.apisix.nginx.logs.errorLog }}"
181186
error_log_level: "{{ .Values.apisix.nginx.logs.errorLogLevel }}" # warn,error

charts/apisix/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,10 @@ apisix:
585585
ip: "0.0.0.0"
586586
port: 7085
587587

588+
trusted_addresses:
589+
- 127.0.0.1
590+
- 172.18.0.0/16
591+
588592
# -- external etcd configuration. If etcd.enabled is false, these configuration will be used.
589593
externalEtcd:
590594
# -- if etcd.enabled is false, use external etcd, support multiple address, if your etcd cluster enables TLS, please use https scheme, e.g. https://127.0.0.1:2379.

0 commit comments

Comments
 (0)