ovn_leader_checker

package
v1.12.13 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

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

Jump to

Keyboard shortcuts

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