Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookServer ¶
type WebhookServer struct {
// contains filtered or unexported fields
}
WebhookServer for listening the AdmissionReview request sent by the apiservers
func NewWebhookServer ¶
func NewWebhookServer(ctx context.Context, restConfig *rest.Config, name string, options *config.Options) *WebhookServer
NewWebhookServer creates a new server for admitter webhook
func (*WebhookServer) RegisterConverters ¶
func (s *WebhookServer) RegisterConverters(converters ...conversion.Converter) error
RegisterConverters registers converters to the webhook server. Call it before start the webhook server.
func (*WebhookServer) RegisterMutators ¶
func (s *WebhookServer) RegisterMutators(mutators ...admission.Mutator) error
RegisterMutators registers mutator to the webhook server. Call it before start the webhook server.
func (*WebhookServer) RegisterValidators ¶
func (s *WebhookServer) RegisterValidators(validators ...admission.Validator) error
RegisterValidators registers validator to the webhook server. Call it before starting the webhook server.
func (*WebhookServer) Start ¶
func (s *WebhookServer) Start() error
Start the admitter webhook server. The server will apply the validatingwebhookconfiguration, mutatingwebhookconfiguration and CRD conversion webhook configuration with cert authentication automatically.