Documentation ¶
Index ¶
- type GetCertificate
- type PodPatch
- type Webhook
- func (wh *Webhook) Admit(ar admissionV1.AdmissionReview) (*admissionV1.AdmissionResponse, error)
- func (wh *Webhook) Init(options *config.Options)
- func (wh *Webhook) Mutate(w http.ResponseWriter, r *http.Request)
- func (wh *Webhook) NewServer(port int32) *http.Server
- func (wh *Webhook) PatchPod(pod *v1.Pod) ([]byte, error)
- func (wh *Webhook) Serve()
- func (wh *Webhook) ServeHealth(w http.ResponseWriter, r *http.Request)
- func (wh *Webhook) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCertificate ¶
type GetCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error)
type Webhook ¶
type Webhook struct { Patches []PodPatch AllowOnErr bool Server *http.Server // contains filtered or unexported fields }
func NewWebhook ¶
func NewWebhook(certificate GetCertificate) *Webhook
func (*Webhook) Admit ¶
func (wh *Webhook) Admit(ar admissionV1.AdmissionReview) (*admissionV1.AdmissionResponse, error)
func (*Webhook) ServeHealth ¶
func (wh *Webhook) ServeHealth(w http.ResponseWriter, r *http.Request)
ServeHealth returns 200 when things are good
Click to show internal directories.
Click to hide internal directories.