mutation

package
v0.0.0-...-8f75a06 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasEnvVar

func HasEnvVar(container corev1.Container, checkEnvVar corev1.EnvVar) bool

HasEnvVar returns true if environment variable exists false otherwise

Types

type Mutator

type Mutator struct {
	Logger *logrus.Entry
}

Mutator is a container for mutation

func NewMutator

func NewMutator(logger *logrus.Entry) *Mutator

NewMutator returns an initialised instance of Mutator

func (*Mutator) MutatePodPatch

func (m *Mutator) MutatePodPatch(pod *corev1.Pod) ([]byte, error)

MutatePodPatch returns a json patch containing all the mutations needed for a given pod

Jump to

Keyboard shortcuts

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