-
Notifications
You must be signed in to change notification settings - Fork 202
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
libnetwork: allow new none ipam driver #967
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
/hold |
Looks like this needs a rebase (Podman PR anyways.) |
Allow creating interfaces only with no ip addresses assigned. Ref containers/common#967 Signed-off-by: Paul Holzinger <[email protected]>
Allow creating interfaces only with no ip addresses assigned. I combined the macvlan and bridge code to prevent unessesary duplication and bugs. Ref containers/common#967 Signed-off-by: Paul Holzinger <[email protected]>
Allow creating interfaces only with no ip addresses assigned. Also combine some duplicated code for bridge/macvlan. Ref containers/common#967 Signed-off-by: Paul Holzinger <[email protected]>
Allow creating interfaces only with no ip addresses assigned. Also combine some duplicated code for bridge/macvlan. Ref containers/common#967 Signed-off-by: Paul Holzinger <[email protected]>
Allow creating interfaces only with no ip addresses assigned. Also combine some duplicated code for bridge/macvlan. Ref containers/common#967 Signed-off-by: Paul Holzinger <[email protected]>
Parse no ipam plugin and display it as ipam driver none. Also set the ipam driver field for unsupported plugins. Signed-off-by: Paul Holzinger <[email protected]>
Network create now uses the ipam driver. This allows the user to configure the ipam driver manually instead of choosing a fixed default. If the ipam driver is `none` no cni ipam plugin will be added to teh config. This means that the interfaces are created but no extra ip addresses are assigned. Signed-off-by: Paul Holzinger <[email protected]>
When we read the cni result we should loop over the interfaces and then the ips. If we only loop over ips we will miss interfaces that have no ips assigned. We also only care about interfaces created in the netns. This is required for ipam driver none case, see the test case. Signed-off-by: Paul Holzinger <[email protected]>
Network create now uses the ipam driver. This allows the user to configure the ipam driver manually instead of choosing a fixed default. If the ipam driver is `none` no ips will be assigned to this container. This means that only the interfaces are created. This will require a patch in netavark since it rejects the config when no static ips are provided. Ref containers/podman#13521 Signed-off-by: Paul Holzinger <[email protected]>
The gocyclo linter is complaining that the cyclomatic complexity is to high for `(*cniNetwork).createCNIConfigListFromNetwork()`. Split out option parsing to a new funtion should reduce the complexity. Signed-off-by: Paul Holzinger <[email protected]>
LGTM |
/lgtm |
Network create now uses the ipam driver. This allows the user to
configure the ipam driver manually instead of choosing a fixed default.
If the ipam driver is
none
no ips will be assigned to this container.This means that only the interfaces are created.
This will require a patch in netavark since it rejects the config when
no static ips are provided.
Ref containers/podman#13521