Skip to content

Commit 6b1cde9

Browse files
authored
feat(gateway): support configure control api (#219)
Signed-off-by: Nic <[email protected]>
1 parent 55a4505 commit 6b1cde9

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

charts/gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.2.31
17+
version: 0.2.32
1818

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

charts/gateway/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ The command removes all the Kubernetes components associated with the chart and
137137
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | |
138138
| autoscaling.version | string | `"v2"` | HPA version, the value is "v2" or "v2beta1", default "v2" |
139139
| configurationSnippet | object | `{"httpAdmin":"","httpEnd":"","httpSrv":"","httpSrvLocation":"","httpStart":"","main":"","stream":""}` | Custom configuration snippet. |
140+
| control.enabled | bool | `true` | Enable Control API |
141+
| control.ip | string | `"127.0.0.1"` | which ip to listen on for Control API |
142+
| control.port | int | `9090` | which port to use for Control API |
140143
| deployment.certs | object | `{"cert":"","cert_key":"","certsSecret":"","mTLSCACert":"","mTLSCACertSecret":""}` | certs used for certificates in decoupled mode |
141144
| deployment.certs.cert | string | `""` | cert name in certsSecret |
142145
| deployment.certs.cert_key | string | `""` | cert key in certsSecret |

charts/gateway/templates/configmap.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ data:
136136
port: {{ .Values.api7ee.status_endpoint.port }}
137137
{{- end }}
138138
139+
enable_control: {{ .Values.control.enabled }}
140+
{{- if .Values.control.enabled }}
141+
control:
142+
ip: {{ default "127.0.0.1" .Values.control.ip }}
143+
port: {{ default 9090 .Values.control.port }}
144+
{{- end }}
145+
139146
disable_upstream_healthcheck: {{ .Values.api7ee.disable_upstream_healthcheck }}
140147
141148
# fine tune the parameters of LRU cache for some features like secret

charts/gateway/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,3 +583,11 @@ soapProxy:
583583
tag: 1.0.0
584584
# -- SOAP proxy image pull policy
585585
pullPolicy: IfNotPresent
586+
587+
control:
588+
# -- Enable Control API
589+
enabled: true
590+
# -- which ip to listen on for Control API
591+
ip: "127.0.0.1"
592+
# -- which port to use for Control API
593+
port: 9090

0 commit comments

Comments
 (0)