admission

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRFC6902Patch

func CreateRFC6902Patch(oldObj, newObj runtime.Object) ([]byte, error)

CreateRFC6902Patch creates an RFC6902 patch that captures the difference between the specified resources.

func RegisterWebhook

func RegisterWebhook(kubeClient kubernetes.Interface, admissionTLSCaBundle, admissionFailurePolicy string) error

RegisterWebhook registers the admission webhook.

Types

type Webhook

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

Webhook represents an admission webhook.

func NewWebhook

func NewWebhook(tlsCertificate tls.Certificate) *Webhook

NewWebhook creates a new instance of the admission webhook.

func (*Webhook) Run

func (w *Webhook) Run(stopCh chan struct{}) error

Run starts the HTTP server that backs the admission webhook.

Jump to

Keyboard shortcuts

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