Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamespacedName ¶
func NamespacedName(ns, name string) types.NamespacedName
NamespacedName creates types.NamespacedName
func ObjectMeta ¶
func ObjectMeta(n types.NamespacedName, opts ...ObjectMetaOpt) metav1.ObjectMeta
ObjectMeta creates metav1.ObjectMeta
Types ¶
type ObjectMetaOpt ¶
type ObjectMetaOpt func(om *metav1.ObjectMeta)
ObjectMetaOpt is a function that can change a newly created meta.ObjectMeta when it's being created.
func AddAnnotations ¶
func AddAnnotations(l map[string]string) ObjectMetaOpt
AddAnnotations is an option func for the ObjectMeta function, which additively applies the provided labels to the created ObjectMeta.
func AddLabels ¶
func AddLabels(l map[string]string) ObjectMetaOpt
AddLabels is an option func for the ObjectMeta function, which additively applies the provided labels to the created ObjectMeta.
Click to show internal directories.
Click to hide internal directories.