I want to switch podman over to only using strings for the netns path. So we no longer pass this interface around. Buildah doesn't use this so we only need to fix it in Podman. I have a WIP PR[1] for that. [1] https://github.com/containers/podman/pull/16756 Signed-off-by: Paul Holzinger <pholzing@redhat.com> |
||
|---|---|---|
| .. | ||
| testfiles | ||
| README.md | ||
| cni_conversion.go | ||
| cni_exec.go | ||
| cni_suite_test.go | ||
| cni_types.go | ||
| config.go | ||
| config_freebsd.go | ||
| config_linux.go | ||
| config_test.go | ||
| network.go | ||
| run.go | ||
| run_freebsd.go | ||
| run_linux.go | ||
| run_test.go | ||
README.md
This package abstracts CNI from libpod.
It implements the ContainerNetwork interface defined in libpod/network/types/network.go for the CNI backend.
Testing
Run the tests with:
go test -v -mod=vendor -cover ./libpod/network/cni/
Run the tests as root to also test setup/teardown. This will execute CNI and therefore the cni plugins have to be installed.