diff --git a/charts/library/common/templates/addons/vpn/_gluetunContainer.tpl b/charts/library/common/templates/addons/vpn/_gluetunContainer.tpl index b6f42e089b2..d1bdbee0c1a 100644 --- a/charts/library/common/templates/addons/vpn/_gluetunContainer.tpl +++ b/charts/library/common/templates/addons/vpn/_gluetunContainer.tpl @@ -34,11 +34,12 @@ env: DOT: "off" {{- if $.Values.addons.vpn.killSwitch }} {{- $excludednetworks := (printf "%v,%v" $.Values.chartContext.podCIDR $.Values.chartContext.svcCIDR) -}} +{{- $excludednetworksv6 := "" -}} {{- range $.Values.addons.vpn.excludedNetworks_IPv4 -}} {{- $excludednetworks = (printf "%v,%v" $excludednetworks .) -}} {{- end }} {{- range $.Values.addons.vpn.excludedNetworks_IPv6 -}} - {{- $excludednetworksv6 = (printf "%v,%v" $excludednetworks .) -}} + {{- $excludednetworksv6 = (printf "%v,%v" $excludednetworksv6 .) -}} {{- end }} FIREWALL: "on" FIREWALL_OUTBOUND_SUBNETS: {{ $excludednetworks | quote }}