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
ObjectResourceName gets string representation of the k8s name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.