feat: add stream_proxy only field (#127)
* feat: add stream_proxy only field
* chore: bump apisix dependency
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
Co-authored-by: Jintao Zhang <zhangjintao9020@gmail.com>
diff --git a/charts/apisix/Chart.lock b/charts/apisix/Chart.lock
index 2d174f3..7441b72 100644
--- a/charts/apisix/Chart.lock
+++ b/charts/apisix/Chart.lock
@@ -7,6 +7,6 @@
version: 0.1.5
- name: apisix-ingress-controller
repository: https://charts.apiseven.com
- version: 0.5.0
-digest: sha256:c740400324755d91cb286e61059011c97e8f37ec8a20e821334dabcb6b59eb7f
-generated: "2021-07-06T17:23:04.154546698+08:00"
+ version: 0.6.0
+digest: sha256:706f74078c4ad14c32f11c3c20b476d23d0fe5772e23e62d121b1bbc699f7cf3
+generated: "2021-08-23T12:54:39.857013357+08:00"
diff --git a/charts/apisix/Chart.yaml b/charts/apisix/Chart.yaml
index 9103401..13b41cf 100644
--- a/charts/apisix/Chart.yaml
+++ b/charts/apisix/Chart.yaml
@@ -31,7 +31,7 @@
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.3.5
+version: 0.3.6
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
@@ -49,7 +49,7 @@
condition: dashboard.enabled
alias: dashboard
- name: apisix-ingress-controller
- version: 0.5.0
+ version: 0.6.0
repository: https://charts.apiseven.com
condition: ingress-controller.enabled
alias: ingress-controller
diff --git a/charts/apisix/charts/apisix-dashboard-0.1.5.tgz b/charts/apisix/charts/apisix-dashboard-0.1.5.tgz
index 98ae56b..03b83f7 100644
--- a/charts/apisix/charts/apisix-dashboard-0.1.5.tgz
+++ b/charts/apisix/charts/apisix-dashboard-0.1.5.tgz
Binary files differ
diff --git a/charts/apisix/charts/apisix-ingress-controller-0.5.0.tgz b/charts/apisix/charts/apisix-ingress-controller-0.5.0.tgz
deleted file mode 100644
index 6488315..0000000
--- a/charts/apisix/charts/apisix-ingress-controller-0.5.0.tgz
+++ /dev/null
Binary files differ
diff --git a/charts/apisix/charts/apisix-ingress-controller-0.6.0.tgz b/charts/apisix/charts/apisix-ingress-controller-0.6.0.tgz
new file mode 100644
index 0000000..513a0bd
--- /dev/null
+++ b/charts/apisix/charts/apisix-ingress-controller-0.6.0.tgz
Binary files differ
diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index f4df442..8ed462b 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -109,6 +109,7 @@
ssl: 'radixtree_sni' # radixtree_sni: match route by SNI(base on radixtree)
{{- if and .Values.gateway.stream.enabled (or (gt (len .Values.gateway.stream.tcp) 0) (gt (len .Values.gateway.stream.udp) 0)) }}
stream_proxy: # TCP/UDP proxy
+ only: {{ .Values.gateway.stream.only }}
{{- if gt (len .Values.gateway.stream.tcp) 0 }}
tcp: # TCP proxy port list
{{- range .Values.gateway.stream.tcp }}
diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml
index 59015df..db3fee3 100644
--- a/charts/apisix/values.yaml
+++ b/charts/apisix/values.yaml
@@ -86,6 +86,7 @@
enabled: true
stream: # L4 proxy (TCP/UDP)
enabled: false
+ only: false
tcp: []
udp: []
ingress: