virtualnode

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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