Documentation ¶
Index ¶
- Constants
- func Compare(a, b []byte) bool
- func GetEnv(key, fallback string) string
- func GetOperatorIDAnnotation(obj metav1.Object) string
- func IsOpenShift() bool
- func OperatorID() string
- func PathToString(pathRef string) string
- func Pbool(b bool) *bool
- func Pint(i int32) *int32
- func RemoveFileExtension(fileName string) string
- func RemoveKnownExtension(fileName, extension string) string
- func SetIsOpenShift(cfg *rest.Config)
Constants ¶
View Source
const (
// DebugV is the default verbosity for the debugger logger
DebugV = 2
)
Variables ¶
This section is empty.
Functions ¶
func GetOperatorIDAnnotation ¶ added in v1.32.0
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
PathToString replaces the PathSeparator from a given path.
func RemoveFileExtension ¶ added in v1.35.0
func RemoveKnownExtension ¶ added in v1.35.0
func SetIsOpenShift ¶ added in v1.40.0
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.
Click to show internal directories.
Click to hide internal directories.