webhook

package
v0.0.0-...-f9370be Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 26 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,
) (*WebHook, error)

New creates a new WebHook instance.

func (*WebHook) Start

func (wh *WebHook) Start() 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.

Jump to

Keyboard shortcuts

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