util

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

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultStatusForCR = []string{"none"}

Functions

func AnnotationsForMetering

func AnnotationsForMetering() map[string]string

IBMDEV

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString returns a Boolean

func CopyLables

func CopyLables(origMap map[string]string) map[string]string

func EqualAnnotations

func EqualAnnotations(found map[string]string, expected map[string]string) bool

func GetCSNamespace

func GetCSNamespace() (string, error)

GetCSNamespace returns the Namespace the operator is running in

func GetImageID

func GetImageID(imageRegistry, imageName, envVarName string) string

func GetPodNames

func GetPodNames(pods []corev1.Pod) []string

GetPodNames returns the pod names of the array of pods passed in

func LabelsForMetadata

func LabelsForMetadata(name string) map[string]string

IBMDEV

func LabelsForPodMetadata

func LabelsForPodMetadata(deploymentName string, crName string) map[string]string

IBMDEV

func LabelsForSelector

func LabelsForSelector(name string, crName string) map[string]string

IBMDEV

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString returns a Boolean

Types

This section is empty.

Jump to

Keyboard shortcuts

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