Skip to content
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 static CNI plugin #136

Merged
merged 1 commit into from
Apr 12, 2018
Merged

Conversation

s1061123
Copy link
Contributor

This changes to add 'static' CNI plugin, which provides to assign IPv4/v6 address statically from given config file. See README.md for the details.

This changes to add 'static' CNI plugin, which provides to assign
IPv4/v6 address statically from given config file. See README.md
for the details.
Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Maybe a couple of repetitions could be factored out, but for such a simple plugin I'm not complaining.

@squeed
Copy link
Member

squeed commented Apr 4, 2018

Might there be any reason for this to have locking? In other words, only allow the IP to be issued to one running container. I suppose if you're using this plugin, you are in debug mode. But it may be a good idea to add.

@dcbw
Copy link
Member

dcbw commented Apr 5, 2018

@squeed I'd say locking could be added later, perhaps? Also, because it's static, even locking wouldn't prevent assigning the same IP to two containers on different nodes. The locking would only help for containers on the same node.

Copy link
Member

@dcbw dcbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me...

@dcbw
Copy link
Member

dcbw commented Apr 12, 2018

@squeed said in the maintainers meeting he had no problem with the locking issue.

@dcbw dcbw merged commit 0dba9da into containernetworking:master Apr 12, 2018
@s1061123 s1061123 deleted the add_static branch April 12, 2018 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants