k3s has removed some standard plugins, which we need. So fork and add it back.
Go to file
Dan Williams f2922c5c1f ns: add interface, use it, and fix thread-related namespace switch issues
Add a namespace object interface for somewhat cleaner code when
creating and switching between network namespaces.  All created
namespaces are now mounted in /var/run/netns to ensure they
have persistent inodes and paths that can be passed around
between plugin components without relying on the current namespace
being correct.

Also remove the thread-locking arguments from the ns package
per https://github.com/appc/cni/issues/183 by doing all the namespace
changes in a separate goroutine that locks/unlocks itself, instead of
the caller having to track OS thread locking.
2016-05-20 17:10:25 -05:00
invoke *: appc/cni -> containernetworking/cni 2016-05-19 12:06:36 +02:00
ip ns: add interface, use it, and fix thread-related namespace switch issues 2016-05-20 17:10:25 -05:00
ipam *: appc/cni -> containernetworking/cni 2016-05-19 12:06:36 +02:00
ns ns: add interface, use it, and fix thread-related namespace switch issues 2016-05-20 17:10:25 -05:00
skel *: appc/cni -> containernetworking/cni 2016-05-19 12:06:36 +02:00
types *: appc/cni -> containernetworking/cni 2016-05-19 12:06:36 +02:00
utils pkg/utils: add functions to work with sysctl 2016-05-19 12:06:16 +02:00