mutation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorResourceType = errors.New("unexpected resource type")

Functions

func GetAnnotationsMutation

func GetAnnotationsMutation(key, value string, kv ...string) resources.Mutable

func GetLabelsMutation

func GetLabelsMutation(key, value string, kv ...string) resources.Mutable

func GetMetaMutation

func GetMetaMutation(getter MetaGetter, setter MetaSetter, key, value string, kv ...string) resources.Mutable

func GetOwnerMutation

func GetOwnerMutation(scheme *runtime.Scheme, owner metav1.Object) resources.Mutable

func GetTemplateAnnotationsMutation

func GetTemplateAnnotationsMutation(key, value string, kv ...string) resources.Mutable

func GetTemplateLabelsMutation

func GetTemplateLabelsMutation(key, value string, kv ...string) resources.Mutable

func GetTemplateMetaMutation

func GetTemplateMetaMutation(getter MetaGetter, setter MetaSetter, key, value string, kv ...string) resources.Mutable

func NoOp

func NoOp(_ context.Context, _ runtime.Object) error

Types

type MetaGetter

type MetaGetter func(metav1.Object) map[string]string

type MetaSetter

type MetaSetter func(metav1.Object, map[string]string)

Jump to

Keyboard shortcuts

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