internal

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Rules = []admissionregistrationv1.RuleWithOperations{
	{
		Operations: []admissionregistrationv1.OperationType{admissionregistrationv1.Create},
		Rule: admissionregistrationv1.Rule{
			APIGroups:   []string{""},
			APIVersions: []string{"v1"},
			Resources:   []string{"pods"},
		},
	},
}

Functions

func Handle

func Handle(pattern string) http.Handler

func InitContainer

func InitContainer(image string, index int, command string) corev1.Container

func IsInitContainer

func IsInitContainer(initContainer corev1.Container, image string, index int, command string) bool

func IsVolume

func IsVolume(volume corev1.Volume) bool

func IsVolumeMount

func IsVolumeMount(volumeMount corev1.VolumeMount) bool

func Mutate

func Mutate(me corev1.Pod) (corev1.Pod, error)

func Volume

func Volume() corev1.Volume

func VolumeMount

func VolumeMount() corev1.VolumeMount

Types

type Func

type Func func(corev1.Pod) (corev1.Pod, error)

type Webhook

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

func (Webhook) ServeHTTP

func (webhook Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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