forked from cri-o/ocicni
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add InitCNIWithCache to set the cni cache directory
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]>
- Loading branch information
Paul Holzinger
committed
Feb 18, 2021
1 parent
b6cbe99
commit 2369117
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters