meta

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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

func TypeMeta

func TypeMeta(kind, apiVersion string) metav1.TypeMeta

TypeMeta creates metav1.TypeMeta

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.

Jump to

Keyboard shortcuts

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