Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdAddK8s ¶
func CmdAddK8s(args *skel.CmdArgs, conf types.NetConf, epIDs utils.WEPIdentifiers) (*current.Result, error)
CmdAddK8s performs the "ADD" operation on a kubernetes pod Having kubernetes code in its own file avoids polluting the mainline code. It's expected that the kubernetes case will more special casing than the mainline code.
func CmdDelK8s ¶
func CmdDelK8s(epIDs utils.WEPIdentifiers, args *skel.CmdArgs, conf types.NetConf, logger *logrus.Entry) error
CmdDelK8s performs the "DEL" operation on a kubernetes pod. The following logic only applies to kubernetes since it sends multiple DELs for the same endpoint. See: https://github.com/kubernetes/kubernetes/issues/44100
func GetNodePodCIDR ¶
func GetNodePodCIDR(client *kubernetes.Clientset, nodename string) (string, error)
GetNodePodCIDR queries podCIDR of the node.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.