Documentation
¶
Overview ¶
Package virtualnode contains utils functions to manage virtual nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForgeFakeNodeFromVirtualNode ¶
func ForgeFakeNodeFromVirtualNode(ctx context.Context, cl client.Client, vn *virtualkubeletv1alpha1.VirtualNode) (*corev1.Node, error)
ForgeFakeNodeFromVirtualNode creates a fake node from a virtual node.
func GetLabelSelectors ¶
func GetLabelSelectors(ctx context.Context, cl client.Client, vn *virtualkubeletv1alpha1.VirtualNode) (labels.Set, error)
GetLabelSelectors returns the labels that can be used to target a remote cluster. If virtualnode spec.CreateNode is true, the labels are taken from the created node. If virtualnode spec.CreateNode is false, the labels are taken from the virtual node spec.Labels and spec.Template .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.