utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyGlobalIPPool = lb.GroupName + "/global-ip-pool"
	ValueTrue       = "true"

	Address4AskDHCP = "0.0.0.0"

	AnnotationKeyNetwork   = lb.GroupName + "/network"
	AnnotationKeyProject   = lb.GroupName + "/project"
	AnnotationKeyNamespace = lb.GroupName + "/namespace"
	AnnotationKeyCluster   = lb.GroupName + "/cluster"
)
View Source
const KeyVid = lb.GroupName + "/vid"

Variables

This section is empty.

Functions

func GetSubdirectories

func GetSubdirectories(root string) ([]string, error)

GetSubdirectories returns the subdirectories of the given root directory.

func GetVid

func GetVid(network string, nadCache ctlcniv1.NetworkAttachmentDefinitionCache) (int, error)

GetVid from the network attachment definition

func NewSelector

func NewSelector(selector map[string][]string) (labels.Selector, error)

func ParseFromFile

func ParseFromFile(yamlFilePath string) ([]runtime.Object, error)

ParseFromFile parses a YAML file into a list of Kubernetes objects

func SetLogLevel

func SetLogLevel(level string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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