kubernetesk8s.io/kubernetes/plugin/pkg/admission/webhook Index | Files

package webhook

import "k8s.io/kubernetes/plugin/pkg/admission/webhook"

Package webhook delegates admission checks to dynamically configured webhooks.

Package webhook checks a webhook for configured operation admission

Package webhook checks a webhook for configured operation admission

Index

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type ErrCallingWebhook

type ErrCallingWebhook struct {
	WebhookName string
	Reason      error
}

func (*ErrCallingWebhook) Error

func (e *ErrCallingWebhook) Error() string

type GenericAdmissionWebhook

type GenericAdmissionWebhook struct {
	*admission.Handler
	// contains filtered or unexported fields
}

GenericAdmissionWebhook is an implementation of admission.Interface.

func NewGenericAdmissionWebhook

func NewGenericAdmissionWebhook() (*GenericAdmissionWebhook, error)

NewGenericAdmissionWebhook returns a generic admission webhook plugin.

func (*GenericAdmissionWebhook) Admit

Admit makes an admission decision based on the request attributes.

func (*GenericAdmissionWebhook) SetClientCert

func (a *GenericAdmissionWebhook) SetClientCert(cert, key []byte)

func (*GenericAdmissionWebhook) SetExternalKubeClientSet

func (a *GenericAdmissionWebhook) SetExternalKubeClientSet(client clientset.Interface)

func (*GenericAdmissionWebhook) SetServiceResolver

func (a *GenericAdmissionWebhook) SetServiceResolver(sr admissioninit.ServiceResolver)

func (*GenericAdmissionWebhook) Validate

func (a *GenericAdmissionWebhook) Validate() error

type RuleMatcher

type RuleMatcher struct {
	Rule v1alpha1.RuleWithOperations
	Attr admission.Attributes
}

func (*RuleMatcher) Matches

func (r *RuleMatcher) Matches() bool

type WebhookSource

type WebhookSource interface {
	Run(stopCh <-chan struct{})
	ExternalAdmissionHooks() (*v1alpha1.ExternalAdmissionHookConfiguration, error)
}

WebhookSource can list dynamic webhook plugins.

Source Files

admission.go doc.go rules.go

Version
v1.7.4
Published
Aug 17, 2017
Platform
js/wasm
Imports
23 packages
Last checked
1 minute ago

Tools for package owners.