-
Notifications
You must be signed in to change notification settings - Fork 133
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
Fix Calico detection #523
Fix Calico detection #523
Conversation
c49ac1c
to
3c4527c
Compare
Reviewed 4 of 4 files at r1. pkg/nettools/nettools.go, line 940 at r1 (raw file):
Why there is assumption that nth ip address is for nth interface? So imo test in There was also (on kubecon) discussion about interfaces configured by cni which does not have ip addresses, configured e.g. with MPLS but i'm not sure if they are now allowed in cni. pkg/tapmanager/tapfdsource.go, line 114 at r1 (raw file):
Is that adding a "fake" pod to calico on first attempt to spawn any pod with calico networking? pkg/tapmanager/tapfdsource.go, line 118 at r1 (raw file):
So that should not work with multiple cni plugins behind e.g. cni genie? (But looks like that should work if there is only calico behind the genie) Comments from Reviewable |
b9b8b28
to
6d77370
Compare
Reviewed 4 of 4 files at r2. pkg/nettools/nettools.go, line 941 at r2 (raw file):
commented code pkg/nettools/nettools_test.go, line 40 at r2 (raw file):
It has the same value as Comments from Reviewable |
Reviewed 1 of 4 files at r1, 2 of 4 files at r2, 2 of 2 files at r3. pkg/nettools/nettools.go, line 940 at r1 (raw file): Previously, jellonek (Piotr Skamruk) wrote…
This is fixed. (no more index assumptions, dummy interface extraction revamped) pkg/nettools/nettools.go, line 941 at r2 (raw file): Previously, jellonek (Piotr Skamruk) wrote…
Removed. pkg/nettools/nettools_test.go, line 40 at r2 (raw file): Previously, jellonek (Piotr Skamruk) wrote…
Fixed. pkg/tapmanager/tapfdsource.go, line 114 at r1 (raw file): Previously, jellonek (Piotr Skamruk) wrote…
This may leak, but only during Virtlet pod restarts. We can fix this later as it's not a critically serious leak, but requires some extra work on Virtlet resource GC. pkg/tapmanager/tapfdsource.go, line 118 at r1 (raw file): Previously, jellonek (Piotr Skamruk) wrote…
Fixed. Comments from Reviewable |
Review status: all files reviewed at latest revision, 5 unresolved discussions. Comments from Reviewable |
pkg/cni/client.go
Outdated
} | ||
|
||
func (c *Client) AddSandboxToNetwork(podId, podName, podNs string) (*cnicurrent.Result, error) { | ||
rtConf := c.cniRuntimeConf(podId, podName, podNs) | ||
rtConf.Args = append(rtConf.Args, [2]string{ |
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.
maybe add a comment that it's for genie only
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.
Fixed. BTW, please use Reviewable for Virtlet reviews.
Make it compatible with CNI Genie
92a53ad
to
288efa7
Compare
Reviewed 1 of 2 files at r3, 2 of 2 files at r4, 1 of 1 files at r5. Comments from Reviewable |
Re-verified the PR after resolving the merge conflict. It still works. |
Reviewed 1 of 4 files at r1, 1 of 2 files at r3, 2 of 2 files at r4, 1 of 1 files at r5. Comments from Reviewable |
Review status: all files reviewed at latest revision, 6 unresolved discussions. Comments from Reviewable |
Make it compatible with CNI Genie
-net
Testing instructions:
lukaszo/cnigenie:env
:Running
:Running
:cni: bridge,calico
annotation added and wait for it to becomeRunning
:10.192.2.x
, e.g.10.192.2.3
:eth1
which corresponds to Calico:network properly.
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)