Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Deserializer = codecs.UniversalDeserializer() InternalError = errors.New("internal admission controller error") )
Functions ¶
func Handler ¶
func Handler(admitter Admitter) http.HandlerFunc
Types ¶
type Admitter ¶
type Admitter interface {
Admit(review *v1beta1.AdmissionRequest) ([]PatchOperation, error)
}
type PatchOperation ¶
type PatchOperation struct { Operation string `json:"op"` Path string `json:"path"` Value interface{} `json:"value"` }
func PatchAdd ¶
func PatchAdd(path string, value interface{}) PatchOperation
func PatchReplace ¶
func PatchReplace(path string, value interface{}) PatchOperation
Click to show internal directories.
Click to hide internal directories.