utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PodTemplateGenerationLabel = "pod-template-generation"

Variables

This section is empty.

Functions

func CreateK8sInterface added in v1.3.0

func CreateK8sInterface() (kubernetes.Interface, error)

CreateK8sInterface creates a new ClientSet for interacting with K8s API

func GetFilesWithSuffix

func GetFilesWithSuffix(baseDir string, suffixes ...string) ([]string, error)

GetFilesWithSuffix returns all files under a given base directory that have a specific suffix The operation is performed recurively on sub directories as well

func GetNetworkAttachmentDefLink(netAttDef *netattdefv1.NetworkAttachmentDefinition) (link string)

func GetPodTemplateGeneration added in v1.3.0

func GetPodTemplateGeneration(pod *v1.Pod, log logr.Logger) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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