package
1.11.8-cni-plugin
Repository: https://github.com/projectcalico/calico.git
Documentation: pkg.go.dev

# Functions

AddIgnoreUnknownArgs appends the 'IgnoreUnknown=1' option to CNI_ARGS before calling the IPAM plugin.
CleanUpIPAM calls IPAM plugin to release the IP address.
CleanUpNamespace deletes the devices in the network namespace.
Set up logging for both Calico and libcalico using the provided log level,.
No description provided by the author
Create a logger which always includes common fields.
No description provided by the author
DoNetworking performs the networking for the given config and IPAM result.
No description provided by the author
No description provided by the author
Check the Datastore for the ready flag to know if it is ok to proceed.
No description provided by the author
Takes as array of IPv4 or IPv6 pools and parses them into an array of IPnet's.
No description provided by the author
ReleaseIPAllocation is called to cleanup IPAM allocations if something goes wrong during CNI ADD execution.
SanitizeMesosLabel converts a string from a valid mesos label to a valid Calico label.
SetupRoutes sets up the routes for the host side of the veth pair.
ValidateNetworkName checks that the network name meets felix's expectations.

# Structs

No description provided by the author
K8sArgs is the valid CNI_ARGS used for Kubernetes.
Kubernetes a K8s specific struct to hold config.
No description provided by the author
NetConf stores the common network config for Calico CNI plugin.
No description provided by the author
Policy is a struct to hold policy config (which currently happens to also contain some K8s config).