utils

package
v1.44.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugV is the default verbosity for the debugger logger
	DebugV = 2
)

Variables

This section is empty.

Functions

func Compare added in v1.32.0

func Compare(a, b []byte) bool

func GetEnv added in v1.40.0

func GetEnv(key, fallback string) string

func GetOperatorIDAnnotation added in v1.32.0

func GetOperatorIDAnnotation(obj metav1.Object) string

GetOperatorIDAnnotation to safely get the operator id annotation value.

func IsOpenShift added in v1.40.0

func IsOpenShift() bool

IsOpenShift is a global flag that can be safely called across reconciliation cycles, defined at the controller manager start.

func OperatorID added in v1.32.0

func OperatorID() string

func PathToString added in v1.40.0

func PathToString(pathRef string) string

PathToString replaces the PathSeparator from a given path.

func Pbool added in v1.32.0

func Pbool(b bool) *bool

Pbool returns a pointer to a boolean

func Pint added in v1.40.0

func Pint(i int32) *int32

Pint returns a pointer to an int

func RemoveFileExtension added in v1.35.0

func RemoveFileExtension(fileName string) string

func RemoveKnownExtension added in v1.35.0

func RemoveKnownExtension(fileName, extension string) string

func SetIsOpenShift added in v1.40.0

func SetIsOpenShift(cfg *rest.Config)

SetIsOpenShift sets the global flag isOpenShift by the controller manager. We don't need to keep fetching the API every reconciliation cycle that we need to know about the platform.

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