builder

package
v1.4.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookBuilder

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

WebhookBuilder builds a Webhook.

func WebhookManagedBy

func WebhookManagedBy(m manager.Manager) *WebhookBuilder

WebhookManagedBy returns a new webhook builder.

func (*WebhookBuilder) Complete

func (blder *WebhookBuilder) Complete() error

Complete builds the webhook.

func (*WebhookBuilder) For

func (blder *WebhookBuilder) For(apiType runtime.Object) *WebhookBuilder

For takes a runtime.Object which should be a CR. If the given object implements the admission.Defaulter interface, a MutatingWebhook will be wired for this type. If the given object implements the admission.Validator interface, a ValidatingWebhook will be wired for this type.

func (*WebhookBuilder) RecoverPanic

func (blder *WebhookBuilder) RecoverPanic() *WebhookBuilder

RecoverPanic indicates whether panics caused by the webhook should be recovered.

func (*WebhookBuilder) WithCategory

func (blder *WebhookBuilder) WithCategory(category string) *WebhookBuilder

func (*WebhookBuilder) WithCategoryProvider

func (blder *WebhookBuilder) WithCategoryProvider(provider types.CategoryProvider) *WebhookBuilder

func (*WebhookBuilder) WithDefaulter

func (blder *WebhookBuilder) WithDefaulter(defaulter admission.CustomDefaulter) *WebhookBuilder

WithDefaulter takes an admission.CustomDefaulter interface, a MutatingWebhook will be wired for this type.

func (*WebhookBuilder) WithLogConstructor

func (blder *WebhookBuilder) WithLogConstructor(logConstructor func(base logr.Logger, req *admission.Request) logr.Logger) *WebhookBuilder

WithLogConstructor overrides the webhook's LogConstructor.

func (*WebhookBuilder) WithValidator

func (blder *WebhookBuilder) WithValidator(validator admission.CustomValidator) *WebhookBuilder

WithValidator takes a admission.CustomValidator interface, a ValidatingWebhook will be wired for this type.

type WebhookConfigurationBuilder

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

func WebhookConfigurationManagedBy

func WebhookConfigurationManagedBy(m manager.Manager) *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) Complete

func (*WebhookConfigurationBuilder) For

func (*WebhookConfigurationBuilder) GetCategory

func (b *WebhookConfigurationBuilder) GetCategory() string

func (*WebhookConfigurationBuilder) MutatingWebhook

func (*WebhookConfigurationBuilder) ValidatingWebhook

func (*WebhookConfigurationBuilder) WithCABundle

func (b *WebhookConfigurationBuilder) WithCABundle(caBundle []byte) *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) WithCategory

func (*WebhookConfigurationBuilder) WithFailurePolicy

func (*WebhookConfigurationBuilder) WithMatchPolicy

func (*WebhookConfigurationBuilder) WithNamespaceSelector

func (b *WebhookConfigurationBuilder) WithNamespaceSelector(namespaceSelector *metav1.LabelSelector) *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) WithObjectSelector

func (b *WebhookConfigurationBuilder) WithObjectSelector(objectSelector *metav1.LabelSelector) *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) WithSideEffects

func (*WebhookConfigurationBuilder) WithWebhookServiceName

func (b *WebhookConfigurationBuilder) WithWebhookServiceName(webhookServiceName string) *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) WithWebhookServiceNamespace

func (b *WebhookConfigurationBuilder) WithWebhookServiceNamespace(webhookServiceNamespace string) *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) WithoutMutatingWebhook

func (b *WebhookConfigurationBuilder) WithoutMutatingWebhook() *WebhookConfigurationBuilder

func (*WebhookConfigurationBuilder) WithoutValidatingWebhook

func (b *WebhookConfigurationBuilder) WithoutValidatingWebhook() *WebhookConfigurationBuilder

Jump to

Keyboard shortcuts

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