master

package
v0.0.0-...-7ca97a9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	Start()
	Stop()
}

type K8sNodeMasterMaintainer

type K8sNodeMasterMaintainer struct {
	// contains filtered or unexported fields
}

K8sNodeMasterMaintainer selects the agent pod with the smallest nodeName as the master agent pod.

func NewK8sNodeMasterMaintainer

func NewK8sNodeMasterMaintainer(cri cri.Interface, clientset *kubernetes.Clientset) *K8sNodeMasterMaintainer

func (*K8sNodeMasterMaintainer) Register

func (m *K8sNodeMasterMaintainer) Register(mc Component)

Register components which should be run when current node become mater. This func should only be called before calling Start.

func (*K8sNodeMasterMaintainer) Start

func (m *K8sNodeMasterMaintainer) Start()

func (*K8sNodeMasterMaintainer) Stop

func (m *K8sNodeMasterMaintainer) Stop()

Jump to

Keyboard shortcuts

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