admission

package
v0.0.0-...-824d618 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admitter

type Admitter struct {
	Logger  *logrus.Entry
	Request *admissionv1.AdmissionRequest
}

Admitter is a container for admission business

func (Admitter) MutatePodReview

func (a Admitter) MutatePodReview() (*admissionv1.AdmissionReview, error)

MutatePodReview takes an admission request and mutates the pod within, it returns an admission review with mutations as a json patch (if any)

func (Admitter) Pod

func (a Admitter) Pod() (*corev1.Pod, error)

Pod extracts a pod from an admission request

func (Admitter) ValidatePodReview

func (a Admitter) ValidatePodReview() (*admissionv1.AdmissionReview, error)

MutatePodReview takes an admission request and validates the pod within it returns an admission review

Jump to

Keyboard shortcuts

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