admission

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(af AdmissionFunc)

func Setup

func Setup()

Setup initialize deserializer and register admission control handlers to the global routing handlers collection.

Types

type AdmissionFunc

type AdmissionFunc struct {
	Type AdmissionType
	Path string
	Func func(request *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)
}

AdmissionFunc defines an admission control handler

type AdmissionType

type AdmissionType string
const (
	AdmissionTypeMutating   AdmissionType = "Mutating"
	AdmissionTypeValidating AdmissionType = "Validating"
)

Jump to

Keyboard shortcuts

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