webhook

package
v0.0.0-...-59d11e0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutator

type Mutator struct {
	SideCars map[string]*SideCar
}

Mutator is the interface for mutating webhook

func (Mutator) Mutate

func (mutator Mutator) Mutate(req []byte) ([]byte, error)

Mutate function performs the actual mutation of pod spec

type SideCar

type SideCar struct {
	Containers       []corev1.Container            `yaml:"containers"`
	Volumes          []corev1.Volume               `yaml:"volumes"`
	ImagePullSecrets []corev1.LocalObjectReference `yaml:"imagePullSecrets"`
}

SideCar is the template of the sidecar to be implemented

Jump to

Keyboard shortcuts

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