Skip to content

Commit 57ccc6d

Browse files
committed
fix(tcp-balancer): guard whitelist ACL rendering
1 parent 6b0c415 commit 57ccc6d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/apps/tcp-balancer/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ description: Layer4 load balancer service
44
icon: /logos/haproxy.svg
55
type: application
66
version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process
7-
appVersion: "3.3.6"
7+
appVersion: "3.4.1"

‎packages/apps/tcp-balancer/templates/configmap.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ data:
4242
{{- if $.Values.whitelistHTTP }}
4343
{{- with $.Values.whitelist }}
4444
acl whitelist src{{ range . }} {{ . }}{{ end }}
45-
{{- end }}
4645
acl all src 0.0.0.0
4746
tcp-request content accept if whitelist
4847
tcp-request content reject
4948
{{- end }}
49+
{{- end }}
5050
tcp-request content set-dst-port int(80)
5151
5252
backend http_backend
@@ -68,11 +68,11 @@ data:
6868
{{- if $.Values.whitelistHTTP }}
6969
{{- with $.Values.whitelist }}
7070
acl whitelist src{{ range . }} {{ . }}{{ end }}
71-
{{- end }}
7271
acl all src 0.0.0.0
7372
tcp-request content accept if whitelist
7473
tcp-request content reject
7574
{{- end }}
75+
{{- end }}
7676
tcp-request content set-dst-port int(443)
7777
7878
backend https_backend
@@ -92,21 +92,21 @@ data:
9292
default_backend kubernetes_backend
9393
{{- with $.Values.whitelist }}
9494
acl whitelist src{{ range . }} {{ . }}{{ end }}
95-
{{- end }}
9695
acl all src 0.0.0.0
9796
tcp-request content accept if whitelist
9897
tcp-request content reject
98+
{{- end }}
9999
100100
frontend talos
101101
bind :::50000 v4v6
102102
mode tcp
103103
default_backend talos_backend
104104
{{- with $.Values.whitelist }}
105105
acl whitelist src{{ range . }} {{ . }}{{ end }}
106-
{{- end }}
107106
acl all src 0.0.0.0
108107
tcp-request content accept if whitelist
109108
tcp-request content reject
109+
{{- end }}
110110
111111
backend kubernetes_backend
112112
{{- include "backendoptions" (default "tcp" .mode) | nindent 8 }}

0 commit comments

Comments
 (0)