Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Client clientset.Interface ElectionID string Callbacks leaderelection.LeaderCallbacks Logger *zap.SugaredLogger }
Config holds the configuration for a leader election
type Elector ¶
type Elector struct { Config Elector *leaderelection.LeaderElector }
func NewElector ¶
NewElector returns an instance of Elector based on config.
type PodInfo ¶
type PodInfo struct { Name string Namespace string NodeIP string // Labels selectors of the running pod // This is used to search for other Ingress controller pods Labels map[string]string }
PodInfo contains runtime information about the pod running the Ingres controller
func GetPodDetails ¶
GetPodDetails returns runtime information about the pod: name, namespace and IP of the node where it is running
Click to show internal directories.
Click to hide internal directories.