pkg

package
v0.0.0-...-583db6d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MustKey = "Time"
)

Variables

This section is empty.

Functions

func FailureReviewRESP

func FailureReviewRESP(reviewRESP *admissionv1.AdmissionReview, reason string)

func GetPod

func GetPod(reviewRequest *admissionv1.AdmissionReview) (*corev1.Pod, error)

func InitReviewRequestResponse

func InitReviewRequestResponse(r *http.Request) (reviewRequest, reviewRESP *admissionv1.AdmissionReview, err error)

func Mutate

func Mutate(w http.ResponseWriter, r *http.Request)

func PatchReviewRESP

func PatchReviewRESP(reviewRESP *admissionv1.AdmissionReview, patchData []byte)

func Response

func Response(reviewRESP *admissionv1.AdmissionReview, w http.ResponseWriter)

func Validate

func Validate(w http.ResponseWriter, r *http.Request)

Types

type InjectMappingData

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

func NewInjectMappingData

func NewInjectMappingData(raw *corev1.Pod) *InjectMappingData

func (*InjectMappingData) GetPatchData

func (inject *InjectMappingData) GetPatchData() ([]byte, error)

func (*InjectMappingData) Mutating

func (inject *InjectMappingData) Mutating() *InjectMappingData

Jump to

Keyboard shortcuts

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