utils

package
v0.0.0-...-3ef91bc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevicePluginNodeLabel

func GetDevicePluginNodeLabel(namespace, moduleName string) string

func GetDevicePluginVersionLabelName

func GetDevicePluginVersionLabelName(namespace, name string) string

func GetKernelModuleReadyNodeLabel

func GetKernelModuleReadyNodeLabel(namespace, moduleName string) string

func GetModuleVersionLabelName

func GetModuleVersionLabelName(namespace, name string) string

func GetNamespaceNameFromVersionLabel

func GetNamespaceNameFromVersionLabel(label string) (string, string, error)

func GetNodeWorkerPodVersionLabel

func GetNodeWorkerPodVersionLabel(nodeLabels map[string]string, namespace, name string) (string, bool)

func GetNodesVersionLabels

func GetNodesVersionLabels(nodeLabels map[string]string) map[string]string

func GetWorkerPodVersionLabelName

func GetWorkerPodVersionLabelName(namespace, name string) string

func IsDeprecatedKernelModuleReadyNodeLabel

func IsDeprecatedKernelModuleReadyNodeLabel(label string) bool

func IsDevicePluginVersionLabel

func IsDevicePluginVersionLabel(label string) bool

func IsKernelModuleReadyNodeLabel

func IsKernelModuleReadyNodeLabel(label string) (bool, string, string)

func IsModuleVersionLabel

func IsModuleVersionLabel(label string) bool

func IsNodeSchedulable

func IsNodeSchedulable(node *v1.Node) bool

func IsObjectSelectedByLabels

func IsObjectSelectedByLabels(objectLabels map[string]string, selectorLabels map[string]string) (bool, error)

func IsVersionLabel

func IsVersionLabel(label string) bool

func IsWorkerPodVersionLabel

func IsWorkerPodVersionLabel(label string) bool

func KernelComponentsAsEnvVars

func KernelComponentsAsEnvVars(kernel string) []string

func MakeSecretVolume

func MakeSecretVolume(secretRef *v1.LocalObjectReference, key string, path string) v1.Volume

func MakeSecretVolumeMount

func MakeSecretVolumeMount(secretRef *v1.LocalObjectReference, mountPath string, readOnly bool) v1.VolumeMount

func ReplaceInTemplates

func ReplaceInTemplates(envvars []string, templates ...string) ([]string, error)

func WarnString

func WarnString(str string) string

Types

This section is empty.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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