utils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package utils contains some utility functions used by the virtual node controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVirtualKubeletPodAbsence

func CheckVirtualKubeletPodAbsence(ctx context.Context, cl client.Client, vn *offloadingv1beta1.VirtualNode) error

CheckVirtualKubeletPodAbsence checks if a VirtualNode's VirtualKubelet pods are absent.

func GetVirtualKubeletDeployment

func GetVirtualKubeletDeployment(ctx context.Context, cl client.Client,
	virtualNode *offloadingv1beta1.VirtualNode) (*appsv1.Deployment, error)

GetVirtualKubeletDeployment returns the VirtualKubelet Deployment of a VirtualNode.

Types

type Flag

type Flag struct {
	Name  string
	Value string
}

Flag is a VirtualKubelet flag. Name must contain the "--" prefix.

func (Flag) String

func (f Flag) String() string

String returns the flag as a string.

Jump to

Keyboard shortcuts

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