virtualnode

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 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 *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 .

func GetVirtualNodeClusterID added in v0.10.0

func GetVirtualNodeClusterID(vn *virtualkubeletv1alpha1.VirtualNode) (string, 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