GitXplorerGitXplorer
p

cni-plugins

public
19 stars
3 forks
0 issues

Commits

List of commits on branch main.
Verified
d0fc1268a84ac79b9cff9ef482e79f46afb42a61

Archival notice

ppasscod committed 3 years ago
Verified
5c3fc3c0a10667668eba2d578a1cbab74b85c2aa

Fix #8 panic on assert in tokio delegation code

ppasscod committed 4 years ago
Unverified
77054fd4186a1f782d8bdef934968c54c6496b03

0.3.0

ppasscod committed 4 years ago
Unverified
49f4b80c6b056689bb8ca1c7f82d414a71fb90e6

Make version script stricter again

ppasscod committed 4 years ago
Verified
fee24b88d1d168cd5597a799ebb0065d405e2a03

Let host-neigh resolve the lladdr from a device name

ppasscod committed 4 years ago
Verified
2738941eebb4df620958278eac6e6556f3266441

0.2.1 doc update

ppasscod committed 4 years ago

README

The README file for this repository.

Adopt-a-crate!

I am no longer working with Nomad, Consul, Kubernetes, or container runtime sysadmin, and so this repository is not maintained. Feel free to fork! If you're committed, email me to get the crate name transferred.

Crate release version Crate license: Apache 2.0 or MIT MSRV: latest stable CI status

CNI Plugins

A library for writing CNI plugins in Rust, and some plugins built with it.

Obtain plugins

Note that these plugins should not be considered solid implementations. They work, and I use them, and eventually they'll surely evolve into robust software, but for now consider them beta quality, and alpha stability.

Flavours

The cni-plugins library can be built with a feature release-logs that enables verbose logging to a file in release builds, which usually is reserved for debug (development) builds. Warning/error logs are always copied to stderr.

It's up to each plugin to carry through the feature, but all in this repo do. The pre-build binary releases available below also come in these two flavours, with the -verbose suffix for productions builds with verbose logging to file.

Logs are appended to /var/log/cni/name-of-plugin.log in production, and to name-of-plugin.log in the working directory in development.

From binary release

The release tab on GitHub.

Builds are available for x86-64 Linux, but adding architectures is often trivial, so please ask if needed.

From source

Clone this repo, install the Rust toolchain, and build with:

# Standard production binary
cargo build --release

# Log-enabled production binary
cargo build --release --features release-logs

# Debug binary
cargo build