server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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