Documentation ¶
Index ¶
- func AddOwnerRef(obj metav1.Object, ownerRef *metav1.OwnerReference)
- func GetImageEnv(envName string) string
- func HTTPS(host string) string
- func LabelsForConsole() map[string]string
- func LabelsForDownloads() map[string]string
- func LogYaml(obj runtime.Object)
- func OwnerRefFrom(cr *operatorv1.Console) *metav1.OwnerReference
- func ReadManagedProxyServiceResolverOrDie(objBytes []byte) *proxyv1alpha1.ManagedProxyServiceResolver
- func ReadUnstructuredOrDie(objBytes []byte) *unstructured.Unstructured
- func RemoveDuplicateStr(strSlice []string) []string
- func SharedLabels() map[string]string
- func SharedMeta() metav1.ObjectMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOwnerRef ¶
func AddOwnerRef(obj metav1.Object, ownerRef *metav1.OwnerReference)
objects can have more than one ownerRef, potentially
func GetImageEnv ¶
borrowed from library-go https://github.com/openshift/library-go/blob/master/pkg/operator/v1alpha1helpers/helpers.go
func LabelsForConsole ¶
func LabelsForDownloads ¶
func OwnerRefFrom ¶
func OwnerRefFrom(cr *operatorv1.Console) *metav1.OwnerReference
func RemoveOwnerRef
func ReadManagedProxyServiceResolverOrDie ¶
func ReadManagedProxyServiceResolverOrDie(objBytes []byte) *proxyv1alpha1.ManagedProxyServiceResolver
func ReadUnstructuredOrDie ¶
func ReadUnstructuredOrDie(objBytes []byte) *unstructured.Unstructured
TODO remove when we update library-go to a version that includes this borrowed from library-go https://github.com/openshift/library-go/blob/master/pkg/operator/resource/resourceread/unstructured.go
func RemoveDuplicateStr ¶
func SharedLabels ¶
func SharedMeta ¶
func SharedMeta() metav1.ObjectMeta
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.