Documentation ¶
Overview ¶
Package virtualnode contains utils functions to manage virtual nodes.
Index ¶
- func ForgeFakeNodeFromVirtualNode(ctx context.Context, cl client.Client, vn *offloadingv1beta1.VirtualNode) (*corev1.Node, error)
- func GetLabelSelectors(ctx context.Context, cl client.Client, vn *offloadingv1beta1.VirtualNode) (labels.Set, error)
- func GetVirtualNodeClusterID(vn *offloadingv1beta1.VirtualNode) (liqov1beta1.ClusterID, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForgeFakeNodeFromVirtualNode ¶
func ForgeFakeNodeFromVirtualNode(ctx context.Context, cl client.Client, vn *offloadingv1beta1.VirtualNode) (*corev1.Node, error)
ForgeFakeNodeFromVirtualNode creates a fake node from a virtual node.
func GetLabelSelectors ¶
func GetLabelSelectors(ctx context.Context, cl client.Client, vn *offloadingv1beta1.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 .
func GetVirtualNodeClusterID ¶ added in v0.10.0
func GetVirtualNodeClusterID(vn *offloadingv1beta1.VirtualNode) (liqov1beta1.ClusterID, bool)
GetVirtualNodeClusterID returns the clusterID given a virtual node.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.