-
Notifications
You must be signed in to change notification settings - Fork 59
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
Initial work to support dynamic multiple CNI configurations #113
base: main
Are you sure you want to change the base?
Initial work to support dynamic multiple CNI configurations #113
Conversation
87621fe
to
196f34f
Compare
Please squash commits |
cdadd4a
to
46c60c5
Compare
I am going to run a few more tests with this code in containerd. As of now all tests have been successful. |
985ec85
to
e4fd289
Compare
Signed-off-by: Michael Zappa <[email protected]>
1d661df
to
89f6935
Compare
@AkihiroSuda I made a few updates. I have squashed the commits. |
@@ -83,6 +89,11 @@ type libcni struct { | |||
sync.RWMutex | |||
} | |||
|
|||
type NetworkInterface struct { |
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 am thinking through this type. It works in the current however give me some time to debate. If anyone likes the current state lmk
name := "" | ||
for _, v := range networkNames { | ||
if net, ok := config[v.NetworkName]; ok { | ||
if v.InterfaceName == "" { |
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.
What if a network has two or more interfaces?
This PR will enable dynamic multiple cni networks to be executed. A large effort is happening in the K8s ecosystem referred to as 'Multi-Network' this will support that. Multiple PR's will follow in containerd to upddate go-cni and provide the code to enable this in the cri containerd plugin.