provider

package
v0.0.0-...-4d19ac6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeLabels

func GetNodeLabels(p VirtualNodeProvider, node *corev1.Node) map[string]string

GetNodeLabels is used to sync allowed node labels to vNode

func GetNodeTaints

func GetNodeTaints(p VirtualNodeProvider, node *corev1.Node, now metav1.Time) (taints []corev1.Taint)

GetNodeTaints is used to convert pNode taints to vNode (adding corev1.TaintNodeUnschedulable)

Types

type VirtualNodeProvider

type VirtualNodeProvider interface {
	GetNodeDaemonEndpoints(node *corev1.Node) (corev1.NodeDaemonEndpoints, error)
	GetNodeAddress(node *corev1.Node) ([]corev1.NodeAddress, error)
	GetLabelsToSync() map[string]struct{}
	GetTaintsToSync() map[string]struct{}
}

VirtualNodeProvider is the interface used for registering the node address.

Jump to

Keyboard shortcuts

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