common

package
v1.17.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckListDifference

func CheckListDifference(slice1 []string, slice2 []string) bool

func Contains

func Contains(list []string, s string) bool

func GetListDifference

func GetListDifference(slice1 []string, slice2 []string) []string

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

GetOperatorNamespace returns the namespace the operator should be running in.

func GetOwnerReferenceUIDs

func GetOwnerReferenceUIDs(ownerRefs []metav1.OwnerReference) []types.UID

func MakeSet

func MakeSet(strs []string) gset.Set

func Reverse

func Reverse(original []string) []string

func StringSliceContentEqual

func StringSliceContentEqual(slice1, slice2 []string) bool

StringSliceContentEqual checks if the contant from two string slice are the same

func ToStringSlice

func ToStringSlice(set gset.Set) []string

func UIDContains

func UIDContains(list []types.UID, s types.UID) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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