245eb078f4
This commit reimplements the kuryr-cni, that is the actual CNI plugin that gets called by kubelet and passes the request to kuryr-daemon, in golang. This means that it can injected as a binary without any dependencies, instead of using a bash script that looks for ID of kuryr-daemon container and does `docker exec` to run Python kuryr-cni inside. The obvious advantage of that is removing a constraint of python, curl and docker/runc binaries being available on any K8s host that runs Kuryr. This enables integration with Magnum, where kubelet runs in such a minimal container. Besides that injecting a binary is way more elegant and less error-prone. The golang implementation should keep the compatibility with Python one. Also currently only containerized jobs are switched to use it, so Python implementation is still kept in the repo. I'm not against removing it in very near future. Please note that there is an important limitation in comparison to the Python implementation - i.e. in case of golang binary running on K8s host, we don't have an easy access to kuryr.conf, meaning that localhost:50036 is currently hardcoded as the kuryr-daemon endpoint. This should be fixed by putting the configured endpoint into 10-kuryr.conf file that gets injected onto the host by cni_ds_init script. Implements: blueprint golang-kuryr-cni Change-Id: Ia241fb5b2937c63d3ed6e3de1ac3003e370e4db6
38 lines
1.0 KiB
TOML
38 lines
1.0 KiB
TOML
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
|
|
|
|
|
[[projects]]
|
|
digest = "1:217f54a01004e15731471f4b3d420c16b99ade200d9872d7c1f0d2684df60f14"
|
|
name = "github.com/containernetworking/cni"
|
|
packages = [
|
|
"pkg/skel",
|
|
"pkg/types",
|
|
"pkg/types/020",
|
|
"pkg/types/current",
|
|
"pkg/version",
|
|
]
|
|
pruneopts = "UT"
|
|
revision = "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
|
version = "v0.7.0"
|
|
|
|
[[projects]]
|
|
digest = "1:cf31692c14422fa27c83a05292eb5cbe0fb2775972e8f1f8446a71549bd8980b"
|
|
name = "github.com/pkg/errors"
|
|
packages = ["."]
|
|
pruneopts = "UT"
|
|
revision = "ba968bfe8b2f7e042a574c888954fccecfa385b4"
|
|
version = "v0.8.1"
|
|
|
|
[solve-meta]
|
|
analyzer-name = "dep"
|
|
analyzer-version = 1
|
|
input-imports = [
|
|
"github.com/containernetworking/cni/pkg/skel",
|
|
"github.com/containernetworking/cni/pkg/types",
|
|
"github.com/containernetworking/cni/pkg/types/current",
|
|
"github.com/containernetworking/cni/pkg/version",
|
|
"github.com/pkg/errors",
|
|
]
|
|
solver-name = "gps-cdcl"
|
|
solver-version = 1
|