mutatortesting

package
Version: v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodLabeler

func NewPodLabeler(labels map[string]string) mutating.Mutator

NewPodLabeler returns a new PodLabeler initialized.

Types

type PodLabeler

type PodLabeler struct {
	// contains filtered or unexported fields
}

PodLabeler is a mutator that will set labels on the received pods.

func (*PodLabeler) Mutate

func (p *PodLabeler) Mutate(ctx context.Context, obj metav1.Object) (bool, error)

Mutate will set the required labels on the pods. Satisfies mutating.Mutator interface.

Source Files

Jump to

Keyboard shortcuts

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