util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNamespacedName added in v0.1.0

func MustNamespacedName(name, namespace string) types.NamespacedName

MustNamespacedName panics if it can't construct a types.NamespacedName.

func NamespacedName

func NamespacedName(name, namespace string) (types.NamespacedName, error)

NamespacedName parses a resource name, and converts it into a types.NamespacedName.

If the name looks like it has a namespace in it (meaning it has a separator) then we use that, otherwise we use the namespace that the resource is created in.

func ObjectNamespacedName added in v0.1.0

func ObjectNamespacedName(o client.Object) types.NamespacedName

ObjectNamespacedName gets the types.NamespacedName from the k8s object.

func ObjectResourceName added in v0.1.0

func ObjectResourceName(o client.Object) string

ObjectResourceName gets string representation of the k8s name.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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