util

package
v0.0.0-...-932eec2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRNotFound metav1.StatusReason = "not found"
)

Variables

This section is empty.

Functions

func AppendLabels

func AppendLabels(src, dest map[string]string) map[string]string

func GetConfigOrDefault

func GetConfigOrDefault(cm map[string]string, key string, defaultVal string) string

func GetDefaultConfig

func GetDefaultConfig(ctx context.Context, c client.Client, log logr.Logger) map[string]string

func Hash

func Hash(val interface{}) string

func IgnoreNotFound

func IgnoreNotFound(err error) error

IgnoreNotFound returns nil on 'not found' errors. All other values that are not 'not found' errors or nil are returned unmodified.

func InterfaceIsNil

func InterfaceIsNil(val interface{}) bool

func IsNotFound

func IsNotFound(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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