webhook

package
v0.0.0-...-3df7030 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 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) (*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