Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProxyContainerPath ¶
GetProxyContainerPath gets the proxy container jsonpath of a pod relative to spec; this path is required in webhooks because of how patches are created.
Types ¶
type Handler ¶
type Handler func( context.Context, *k8s.MetadataAPI, *admissionv1beta1.AdmissionRequest, record.EventRecorder, ) (*admissionv1beta1.AdmissionResponse, error)
Handler is the signature for the functions that ultimately deal with the admission request
type Server ¶
Server describes the https server implementing the webhook
func NewServer ¶
func NewServer( ctx context.Context, api *pkgk8s.KubernetesAPI, metadataAPI *k8s.MetadataAPI, addr, certPath string, handler Handler, component string, ) (*Server, error)
NewServer returns a new instance of Server
Click to show internal directories.
Click to hide internal directories.