server

package
v0.0.0-...-b51d232 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL