injector

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodAnnotatorMutate

func NewPodAnnotatorMutate(c client.Client) admission.Handler

Types

type PodAnnotator

type PodAnnotator struct {
	Client client.Client
	// contains filtered or unexported fields
}

func (*PodAnnotator) ConfigAnnotation

func (a *PodAnnotator) ConfigAnnotation(an map[string]string, namespace string) (map[string]string, error)

func (*PodAnnotator) Handle

PodAnnotator adds an annotation to every incoming pods.

func (*PodAnnotator) InjectDecoder

func (a *PodAnnotator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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