nodeinit: only bypass IP-MASQ chain if Cilium manages masquerade#12952
nodeinit: only bypass IP-MASQ chain if Cilium manages masquerade#12952joestringer merged 3 commits intocilium:masterfrom
Conversation
|
Commit 721dd07d3423b7f9fa6c8aad25e3e4f7052acdf7 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Signed-off-by: John Watson <johnw@planetscale.com>
721dd07 to
9f7a7fa
Compare
|
Commit 721dd07d3423b7f9fa6c8aad25e3e4f7052acdf7 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
joestringer
left a comment
There was a problem hiding this comment.
Looks good to me, thanks for following up.
I'll /cc @David0922 @Weil0ng to double-check that this satisfies their concerns.
|
The bot didn't seem to detect that sign-off was added, it seems right to me. So I dropped that label. |
| {{- end }} | ||
|
|
||
| {{- if .Values.global.gke.enabled }} | ||
| {{- if (or (and .Values.global.gke.enabled .Values.global.masquerade) (and .Values.global.gke.enabled .Values.global.gke.disableDefaultSnat))}} |
There was a problem hiding this comment.
nit: can be as per below, feel free to ignore
| {{- if (or (and .Values.global.gke.enabled .Values.global.masquerade) (and .Values.global.gke.enabled .Values.global.gke.disableDefaultSnat))}} | |
| {{- if (and ( .Values.global.gke.enabled (or .Values.global.masquerade .Values.global.gke.disableDefaultSnat)))}} |
|
LGTM. Nice catch. |
Signed-off-by: John Watson <johnw@planetscale.com>
Signed-off-by: John Watson <johnw@planetscale.com>
|
test-gke |
#11782 introduced unexpected behavior of outright disabling ip-masquerade-agent functionality in GKE clusters with Cilium installed.
See: #11782 (comment)
Instead of always bypassing the IP-MASQ chain managed by GKE nodeinit and the ip-masquerade-agent, only bypass it if the user wants Cilium to manage masquerading (
global.masquerade=true) or if they want to explicitly disable masquerade (global.gke.disableDefaultSnat)