server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 17 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionWebhookServer

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

AdmissionWebhookServer for listening the AdmissionReview request sent by the apiservers

func New

func New(ctx context.Context, restConfig *rest.Config, name string, options *config.Options) *AdmissionWebhookServer

New admission webhook server

func (*AdmissionWebhookServer) Register

func (s *AdmissionWebhookServer) Register(admitters []types.Admitter)

Register validator or mutator to the admission webhook server. Call it before start the admission webhook server.

func (*AdmissionWebhookServer) Start

func (s *AdmissionWebhookServer) Start() error

Start the admission webhook server. The server will apply the validatingwebhookconfiguration and mutatingwebhookconfiguration with cert authentication automatically.

Jump to

Keyboard shortcuts

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