-
Notifications
You must be signed in to change notification settings - Fork 55
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 InitCNIWithCache to set the cni cache directory #84
Conversation
Add a new function InitCNIWithCache which works like InitCNI except that it accepts an extra parameter to set the cache directory. This change is needed for rootless users which are trying to use cni in a user+net namespace because the default directory is not writeable by rootless users. Second, setting the cni cache directory via the runtime config is deprecated. It has to be set with NewCNIConfigWithCacheDir for the cni config. see: containernetworking/cni#682 Signed-off-by: Paul Holzinger <[email protected]>
This is needed for containers/podman#9423 |
@rhatdan @baude @mheon @vrothberg PTAL |
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.
LGTM
/approve |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: Luap99, rhatdan 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 |
Add a new function InitCNIWithCache which works like
InitCNI except that it accepts an extra parameter to
set the cache directory.
This change is needed for rootless users which are
trying to use cni in a user+net namespace because the
default directory is not writeable by rootless users.
Second, setting the cni cache directory via the runtime
config is deprecated. It has to be set with
NewCNIConfigWithCacheDir for the cni config.
see: containernetworking/cni#682