Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // GroupResource returns Group and Resource type this handler accepts. GroupResource() metav1.GroupResource // AdmissionResource returns resource type this handler accepts. AdmissionResource() admission.AdmissionResource // DisallowIncorrectObjects returns whether incorrect objects (eg. unparsable, not passing validations) should be disallowed by Admission Server. DisallowIncorrectObjects() bool // GetPatches returns patches for given AdmissionRequest GetPatches(*v1.AdmissionRequest) ([]PatchRecord, error) }
Handler represents a handler for a resource in Admission Server
type PatchRecord ¶
type PatchRecord struct { Op string `json:"op,inline"` Path string `json:"path,inline"` Value interface{} `json:"value"` }
PatchRecord represents a single patch for modifying a resource.
Click to show internal directories.
Click to hide internal directories.