admission_test

package
v0.0.0-...-2f83af2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdmissionKey   = "admission-allow"
	AdmissionAllow = "true"
)

Variables

This section is empty.

Functions

func Approved

func Approved() *admv1.AdmissionResponse

func GenericError

func GenericError(err error) *admv1.AdmissionResponse

func Serve

func Serve(w http.ResponseWriter, r *http.Request, admit admitFunc)

Serve handles the http portion of a request prior to handing to an admit function

func UnmarsallError

func UnmarsallError(raw []byte, t string, err error) *admv1.AdmissionResponse

Types

type Object

type Object struct {
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}

Jump to

Keyboard shortcuts

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