webhook

package
v0.0.0-...-dcfd187 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertProvider

func NewCertProvider(serverCertFile, serverKeyFile, caCertFile string, reloadInterval time.Duration) (*certProvider, error)

Types

type WebHook

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

WebHook encapsulates things needed to run the webhook.

func New

func New(
	clientset kubernetes.Interface,
	informerFactory crinformers.SharedInformerFactory,
	jobNamespace string,
	deregisterOnExit bool,
	enableResourceQuotaEnforcement bool,
	coreV1InformerFactory informers.SharedInformerFactory,
	webhookTimeout *int) (*WebHook, error)

New creates a new WebHook instance.

func (*WebHook) Start

func (wh *WebHook) Start(stopCh <-chan struct{}) error

Start starts the admission webhook server and registers itself to the API server.

func (*WebHook) Stop

func (wh *WebHook) Stop() error

Stop deregisters itself with the API server and stops the admission webhook server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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