cnireconciler

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDumpStateVer

func IsDumpStateVer() (bool, error)

IsDumpStateVer checks if the CNI executable is a version that has the dump state command required to initialize CNS from CNI state and returns the result of that test or an error. Will always return false when there is an error.

func NewCNIPodInfoProvider

func NewCNIPodInfoProvider() (cns.PodInfoByIPProvider, error)

NewCNIPodInfoProvider returns an implementation of cns.PodInfoByIPProvider that execs out to the CNI and uses the response to build the PodInfo map.

func WriteObjectToCNIStatefile

func WriteObjectToCNIStatefile() error

WriteObjectToCNIStatefile checks for a file at the CNI statefile path, and checks if it is empty. If it is empty, writes an empty JSON object to it so older CNI can execute. Does nothing and returns no error if the file does not exist.

This is a hack to get older CNI to run when CNS has mounted the statefile path, but the statefile wasn't written by CNI yet. Kubelet will stub an empty file on the host filesystem, crashing older CNI because it doesn't know how to handle empty statefiles.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL