util

package
v0.0.0-...-0120ab8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 HTTPS

func HTTPS(host string) string

TODO: technically, this should take targetPort from route.spec.port.targetPort

func LabelsForConsole

func LabelsForConsole() map[string]string

func LabelsForDownloads

func LabelsForDownloads() map[string]string

func LogYaml

func LogYaml(obj runtime.Object)

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 RemoveDuplicateStr(strSlice []string) []string

func SharedLabels

func SharedLabels() map[string]string

func SharedMeta

func SharedMeta() metav1.ObjectMeta

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL