webhooks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultingWebhookFor

func DefaultingWebhookFor(defaulter Defaulter) *admission.Webhook

func RegisterGatewayApiWebhooks

func RegisterGatewayApiWebhooks(webhookSvcNs, webhookSvcName string, caBundle []byte)

func RegisterWebhooks

func RegisterWebhooks(webhookSvcNs, webhookSvcName string, caBundle []byte)

func ValidatingWebhookFor

func ValidatingWebhookFor(validator Validator) *admission.Webhook

Types

type Defaulter

type Defaulter interface {
	WebhookKind
	SetDefaults(obj interface{})
}

type Validator

type Validator interface {
	WebhookKind
	ValidateCreate(obj interface{}) error
	ValidateUpdate(oldObj, obj interface{}) error
	ValidateDelete(obj interface{}) error
}

type WebhookKind

type WebhookKind interface {
	Kind() string
}

Jump to

Keyboard shortcuts

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