webhook

package
v0.2.42 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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionValidator

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

func NewAdmissionValidator

func NewAdmissionValidator(kubernetesClient *k8sinterface.KubernetesApi, objectCache objectcache.ObjectCache, exporter *exporters.HTTPExporter, ruleBindingCache rulebinding.RuleBindingCache) *AdmissionValidator

func (*AdmissionValidator) GetClientset

func (av *AdmissionValidator) GetClientset() kubernetes.Interface

func (*AdmissionValidator) Handles

func (av *AdmissionValidator) Handles(operation admission.Operation) bool

We are implementing the Handles method from the ValidationInterface interface. This method returns true if this admission controller can handle the given operation, we accept all operations.

func (*AdmissionValidator) Validate

We are implementing the Validate method from the ValidationInterface interface.

type AdmissionWebhookInterface

type AdmissionWebhookInterface interface {
	// Runs the webhook server until the passed context is cancelled, or it
	// experiences an internal error.
	//
	// Error is always non-nil and will always be one of:
	//		deadline exceeded
	//		context cancelled
	//		or http listen error
	Run(ctx context.Context) error
}

func New

func New(addr string, certFile, keyFile string, scheme *runtime.Scheme, validator admission.ValidationInterface, watcher watcher.Watcher) AdmissionWebhookInterface

Jump to

Keyboard shortcuts

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