controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeControllerClientName = "node-controller"

	NodeControllerKey = "label-taint"
)
View Source
const (
	AnnotationEPUpdated = "service.beta.kubernetes.io/eks-endpoints-updated"
)
View Source
const (
	EndpointsControllerName = "endpoints-controller"
)

Variables

This section is empty.

Functions

func NodeHealth

func NodeHealth(node v1.Node) bool

func NodeIP

func NodeIP(node v1.Node) (string, error)

func NodeReady

func NodeReady(node v1.Node) bool

func NodeUnreachable

func NodeUnreachable(node v1.Node) bool

func UpdateNode

func UpdateNode(node *v1.Node, detail *commoneks.NodeCCMInitResponseData) error

UpdateNode 设置节点的污点

func UpdateNodeAnnotations

func UpdateNodeAnnotations(node *v1.Node, detail *commoneks.NodeCCMInitResponseData)

UpdateNodeAnnotations 修改节点的污点

func UpdateNodeLabels

func UpdateNodeLabels(node *v1.Node, detail *commoneks.NodeCCMInitResponseData)

UpdateNodeLabels 更新节点标签

func UpdateNodeTaints

func UpdateNodeTaints(node *v1.Node, detail *commoneks.NodeCCMInitResponseData)

UpdateNodeTaints 修改节点的污点

Types

type EndpointsController added in v1.1.0

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

EndpointsController 监听 Endpoints 变化,触发 LoadBalancer 更新

func NewServiceController added in v1.1.0

func NewServiceController() (*EndpointsController, error)

func (*EndpointsController) Run added in v1.1.0

func (sc *EndpointsController) Run(ctx context.Context)

Run 启动 Endpoints 监听器

type EndpointsControllerWrapper added in v1.1.0

type EndpointsControllerWrapper struct{}

EndpointsControllerWrapper 包装 EndpointsController,用于注册到 ControllerInitializers

func NewEndpointsControllerWrapper added in v1.1.0

func NewEndpointsControllerWrapper() *EndpointsControllerWrapper

func (*EndpointsControllerWrapper) StartEndpointsControllerWrapper added in v1.1.0

func (e *EndpointsControllerWrapper) StartEndpointsControllerWrapper(
	initContext app.ControllerInitContext,
	completedConfig *cloudcontrollerconfig.CompletedConfig,
	cloud cloudprovider.Interface,
) app.InitFunc

StartEndpointsControllerWrapper 初始化并启动 EndpointsController

type NodeController

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

func NewNodeController

func NewNodeController() NodeController

func (*NodeController) CollectPlayLoad

func (n *NodeController) CollectPlayLoad(ctx context.Context) error

CollectPlayLoad 获取集群节点的负载信息

func (*NodeController) ListenNodes

func (n *NodeController) ListenNodes(ctx context.Context)

func (*NodeController) NotifyNodeDown

func (n *NodeController) NotifyNodeDown(ctx context.Context, event *v1.Event)

func (*NodeController) NotifyNodeReady

func (n *NodeController) NotifyNodeReady(ctx context.Context, event *v1.Event)

func (*NodeController) Run

func (n *NodeController) Run(ctx context.Context)

func (*NodeController) Update

func (n *NodeController) Update(ctx context.Context) error

func (*NodeController) Validate

func (n *NodeController) Validate() error

type NodeControllerWrapper added in v1.1.0

type NodeControllerWrapper struct{}

func NewNodeControllerWrapper added in v1.1.0

func NewNodeControllerWrapper() *NodeControllerWrapper

func (*NodeControllerWrapper) StartNodeControllerWrapper added in v1.1.0

func (c *NodeControllerWrapper) StartNodeControllerWrapper(initContext app.ControllerInitContext, completedConfig *cloudcontrollerconfig.CompletedConfig, cloud cloudprovider.Interface) app.InitFunc

Jump to

Keyboard shortcuts

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