mutation

package
v0.0.0-...-d75b4c1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasVolume

func HasVolume(pod corev1.Pod, checkVolume corev1.Volume) bool

func HasVolumeMount

func HasVolumeMount(container corev1.Container, checkVolumeMount corev1.VolumeMount) bool

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