admission

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMutatingWebhook

func NewMutatingWebhook(
	mutatingWebhookName,
	webhookServiceNamespace,
	webhookServiceName,
	webhookPath string,
	caBundle []byte,
	namespaceSelector *metav1.LabelSelector,
	objectSelector *metav1.LabelSelector,
	failurePolicy admissionregv1.FailurePolicyType,
	rules []admissionregv1.RuleWithOperations,
) admissionregv1.MutatingWebhook

func NewMutatingWebhookConfiguration

func NewMutatingWebhookConfiguration() *admissionregv1.MutatingWebhookConfiguration

func NewRule

func NewRule(
	operations []admissionregv1.OperationType,
	apiGroups, apiVersions, resources []string,
) admissionregv1.RuleWithOperations

func NewValidatingWebhook

func NewValidatingWebhook(
	validatingWebhookName,
	webhookServiceNamespace,
	webhookServiceName,
	webhookPath string,
	caBundle []byte,
	namespaceSelector *metav1.LabelSelector,
	objectSelector *metav1.LabelSelector,
	failurePolicy admissionregv1.FailurePolicyType,
	rules []admissionregv1.RuleWithOperations,
) admissionregv1.ValidatingWebhook

func RegisterMutatingWebhook

func RegisterMutatingWebhook(name string, webhook admissionregv1.MutatingWebhook)

func RegisterValidatingWebhook

func RegisterValidatingWebhook(name string, webhook admissionregv1.ValidatingWebhook)

Types

This section is empty.

Jump to

Keyboard shortcuts

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