Documentation ¶
Overview ¶
Package admission provides helpers for admission webhook builder and server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutatingWebhook ¶
type MutatingWebhook struct { // Name of the mutating webhook. Name string // Namespace where the mutating webhook is deployed. Namespace string // ServerName is the name of the admission webhook server. ServerName string // ServiceName is the Service for the webhook endpoints. ServiceName string // ServiceSelector is the label selector used by Service to select the pods. ServiceSelector map[string]string // Port is the port at which the webhook server runs. Port int32 // Operations are the admission operation events to listen for. Operations []admissionregistrationv1beta1.OperationType // Manager is a controller manager. Manager manager.Manager // ObjectType is the type of the k8s object to mutate. ObjectType runtime.Object // Handlers are the webhook handlers. Handlers []admission.Handler // DisableConfigInstaller can be used to disable automated installation and // update of the mutating webhook configuration. DisableConfigInstaller *bool }
MutatingWebhook is a mutating admission webhook.
func (MutatingWebhook) SetupWebhook ¶
func (w MutatingWebhook) SetupWebhook() error
SetupWebhook setsup the webhook by building a mutating webhook, creating a server at a given port, a service, mutating webhook configuration and registering the created webhook with the created server.
Click to show internal directories.
Click to hide internal directories.