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.
Click to show internal directories.
Click to hide internal directories.