Skip to content

Commit

Permalink
Fix expression per lint error
Browse files Browse the repository at this point in the history
Signed-off-by: John Watson <johnw@planetscale.com>
  • Loading branch information
dctrwatson authored and joestringer committed Aug 26, 2020
1 parent ff821d2 commit 7457ce6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
systemctl restart kubelet
{{- end }}

{{- if (and ( .Values.global.gke.enabled (or .Values.global.masquerade .Values.global.gke.disableDefaultSnat)))}}
{{- if (and .Values.global.gke.enabled (or .Values.global.masquerade .Values.global.gke.disableDefaultSnat))}}
# If the IP-MASQ chain exists, add back default jump rule from the GKE instance configure script
if iptables -w -t nat -L IP-MASQ > /dev/null; then
iptables -w -t nat -A POSTROUTING -m comment --comment "ip-masq: ensure nat POSTROUTING directs all non-LOCAL destination traffic to our custom IP-MASQ chain" -m addrtype ! --dst-type LOCAL -j IP-MASQ
Expand Down Expand Up @@ -183,7 +183,7 @@ spec:
systemctl restart kubelet
{{- end }}

{{- if (and ( .Values.global.gke.enabled (or .Values.global.masquerade .Values.global.gke.disableDefaultSnat)))}}
{{- if (and .Values.global.gke.enabled (or .Values.global.masquerade .Values.global.gke.disableDefaultSnat))}}
# If Cilium is configured to manage masquerading of traffic leaving the node,
# we need to disable the IP-MASQ chain because even if ip-masq-agent
# is not installed, the node init script installs some default rules into
Expand Down

0 comments on commit 7457ce6

Please sign in to comment.