admission

package
v1.2.9-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package admission contains admission controller logic

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

NewMutatingWebhook creates a new MutatingWebhook

func NewMutatingWebhookConfiguration

func NewMutatingWebhookConfiguration(webhooks []admissionregv1.MutatingWebhook, meshName, fsmVersion string) *admissionregv1.MutatingWebhookConfiguration

NewMutatingWebhookConfiguration creates a new MutatingWebhookConfiguration

func NewRule

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

NewRule creates a new Rule

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

NewValidatingWebhook creates a new ValidatingWebhook

func NewValidatingWebhookConfiguration

func NewValidatingWebhookConfiguration(webhooks []admissionregv1.ValidatingWebhook, meshName, fsmVersion string) *admissionregv1.ValidatingWebhookConfiguration

NewValidatingWebhookConfiguration creates a new ValidatingWebhookConfiguration

Types

This section is empty.

Jump to

Keyboard shortcuts

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