New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to configure native-routing-cidr in helm chart #11132
Conversation
Commits 1f23507b5e18926dcfbbaefc4e83da0bc61d2014, 6a5f52db27768c2a87ca6969a32c6a39c1fa43fb do 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 |
Please set the appropriate release note label. |
Please set the appropriate release note label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
test-me-please |
install/kubernetes/cilium/charts/config/templates/configmap.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One small issue left.
pkg/option/config.go
Outdated
func (c *DaemonConfig) checkIPv4NativeRoutingCIDR() error { | ||
if c.IPv4NativeRoutingCIDR() == nil && c.Masquerade && c.Tunnel == TunnelDisabled && c.IPAMMode() != IPAMENI { | ||
return fmt.Errorf("native routing cidr must be configured with option --%s in combination with --%s --%s=%s --%s=%s", | ||
Masquerade, IPv4NativeRoutingCIDR, TunnelName, c.Tunnel, IPAM, c.IPAMMode()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the argument order is still off here. I think you want IPv4NativeRoutingCIDR
for the first %s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are of course right. Fixed.
Commit 902f9214921fa4b0d5178343c972843280aef9e1 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 |
@zbindenren Change looks good now. Can you rebase to make sure all commits are signed off? |
Rebase done. |
test-me-please |
Commit a6b2684b2a68ac361150af01268bb9425bbdc50a 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: Rene Zbinden <rene.zbinden@postfinance.ch>
Signed-off-by: Rene Zbinden <rene.zbinden@postfinance.ch>
test-me-please |
1 similar comment
test-me-please |
@aanm I am not sure what those failures have to do with my changes? Should I update and rebase again? |
thanks for the PR @zbindenren ! |
With this change it is possible to configure
native-routing-cidr
option in helm chart. Additionally it makes sure, that this value is set when:masquerade: true
tunnel: disabled
ipam: eni
Fixes: #11096 ("K8s Network Policy not working with configured auto-direct-node-routes")
Signed-off-by: Rene Zbinden rene.zbinden@postfinance.ch