virtualnode

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 *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.

Jump to

Keyboard shortcuts

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