Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvSSL = "ENABLE_SSL" EnvPodName = "POD_NAME" EnvPodNameSpace = "POD_NAMESPACE" OvnNorthdPid = "/var/run/ovn/ovn-northd.pid" DefaultProbeInterval = 5 OvnNorthdPort = "6643" MaxFailCount = 3 )
Variables ¶
This section is empty.
Functions ¶
func KubeClientInit ¶
func KubeClientInit(cfg *Configuration) error
KubeClientInit funcs to check apiserver alive
func StartOvnLeaderCheck ¶
func StartOvnLeaderCheck(cfg *Configuration)
Types ¶
type Configuration ¶
type Configuration struct { KubeConfigFile string KubeClient kubernetes.Interface ProbeInterval int EnableCompact bool ISICDBServer bool }
Configuration is the controller conf
func ParseFlags ¶
func ParseFlags() (*Configuration, error)
ParseFlags parses cmd args then init kubeclient and conf TODO: validate configuration
Click to show internal directories.
Click to hide internal directories.