Documentation
¶
Overview ¶
Copyright 2025 IBM Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 NewNSSCache(watchNamespaceList []string, opts ctrl.Options) ctrl.Options
- 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 NewNSSCache ¶ added in v4.3.1
NewCSCache implements a customized cache with a for CS
func StringSliceContentEqual ¶
StringSliceContentEqual checks if the contant from two string slice are the same
func ToStringSlice ¶
Types ¶
This section is empty.