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

Update CNI to v0.6.0 and add port mapping support. #1

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

Random-Liu
Copy link
Contributor

This PR:

  1. Update CNI to v0.6.0;
  2. Add port mapping support which supports host port natively.
  3. Cleanup the code a bit.

@mrunalp
Signed-off-by: Lantao Liu lantaol@google.com

@Random-Liu
Copy link
Contributor Author

Random-Liu commented Aug 23, 2017

@mrunalp Do you prefer we maintain this in our repo or get this merged here? :)
Not sure whether you guys like this.

@mrunalp
Copy link
Member

mrunalp commented Aug 23, 2017

@Random-Liu This looks fine to me 👍 :)
@rajatchopra PTAL

Copy link
Collaborator

@rajatchopra rajatchopra 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.

ocicni.go Outdated
// Search for vendor-specific plugins as well as default plugins in the CNI codebase.
vendorDir := vendorCNIDir(vendorCNIDirPrefix, conf.Network.Type)
vendorDir := vendorCNIDir(vendorCNIDirPrefix, confList.Plugins[0].Network.Type)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably log which network executable we finally picked up and from which file. Will be helpful in debugging as we now have multiple files and multiple plugins in same file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Lantao Liu <lantaol@google.com>
@mrunalp
Copy link
Member

mrunalp commented Aug 23, 2017

LGTM

@mrunalp mrunalp merged commit 0f90d35 into cri-o:master Aug 23, 2017
@Random-Liu Random-Liu deleted the support-port-mapping branch August 23, 2017 18:28
@Random-Liu
Copy link
Contributor Author

@mrunalp Thanks! I'll update the dependency in cri-containerd. Actually cri-o could also use this to get rid of the annoying hostport package. :p

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.

None yet

3 participants