Documentation ¶
Index ¶
- func CheckListDifference(slice1 []string, slice2 []string) bool
- func Contains(list []string, s string) bool
- func GetFirstNCharacter(str string, n int) string
- func GetListDifference(slice1 []string, slice2 []string) []string
- func GetOperatorNamespace() (string, error)
- func GetOwnerReferenceUIDs(ownerRefs []metav1.OwnerReference) []types.UID
- func GetResourcesDynamically(ctx context.Context, dynamic dynamic.Interface, group string, version string, ...) ([]unstructured.Unstructured, error)
- func MakeSet(strs []string) gset.Set
- func Reverse(original []string) []string
- func StringSliceContentEqual(slice1, slice2 []string) bool
- func ToStringSlice(set gset.Set) []string
- func UIDContains(list []types.UID, s types.UID) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckListDifference ¶
func GetFirstNCharacter ¶ added in v4.2.10
func GetListDifference ¶
func GetOperatorNamespace ¶
GetOperatorNamespace returns the namespace the operator should be running in.
func GetOwnerReferenceUIDs ¶
func GetOwnerReferenceUIDs(ownerRefs []metav1.OwnerReference) []types.UID
func GetResourcesDynamically ¶
func GetResourcesDynamically(ctx context.Context, dynamic dynamic.Interface, group string, version string, resource string, labelSelector metav1.LabelSelector) ( []unstructured.Unstructured, error)
func StringSliceContentEqual ¶
StringSliceContentEqual checks if the contant from two string slice are the same
func ToStringSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.