Documentation ¶
Index ¶
- Variables
- func GenerateRandomString(rule string) string
- func GetControllerKind(controlled client.Object) (kind string)
- func GetControllerRefIndex(controlled client.Object) (index int)
- func GetCsConfigAnnotation(namespace string) string
- func IsControllerOf(controller, controlled client.Object) (isController bool)
- func IsCsConfigAnnotationExists(annotations map[string]string) bool
- func IsOwnerOf(owner, owned client.Object) (isOwner bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var CsConfigAnnotationSuffix = "common-service/config"
View Source
var CsDefaultNamespace = "ibm-common-services"
Functions ¶
func GenerateRandomString ¶
GenerateRandomString generates a random string based upon a string that is a valid regex pattern.
func GetControllerKind ¶
func GetControllerRefIndex ¶
func GetCsConfigAnnotation ¶
GetCsConfigAnnotation returns '<namespace>.common-service/config' annotation name for given namespace
func IsControllerOf ¶
IsControllerOf determines whether one object is listed as the controller of another object within its OwnerReferences.
func IsCsConfigAnnotationExists ¶
IsCsConfigAnnotationExists checks if '<namespace>.common-service/config' annotation name exists in the given annotations map or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.