Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookServer added in v0.1.3

type WebhookServer struct {
	// contains filtered or unexported fields
}

WebhookServer for listening the AdmissionReview request sent by the apiservers

func NewWebhookServer added in v0.1.3

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 added in v0.1.3

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 added in v0.1.3

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 added in v0.1.3

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 added in v0.1.3

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