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) SetServiceResolver

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

func (*GenericAdmissionWebhook) SetWebhookSource

func (a *GenericAdmissionWebhook) SetWebhookSource(ws admissioninit.WebhookSource)

type RuleMatcher

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

func (*RuleMatcher) Matches

func (r *RuleMatcher) Matches() bool

Source Files

admission.go doc.go rules.go

Version
v1.7.0-beta.1
Published
Jun 8, 2017
Platform
linux/amd64
Imports
19 packages
Last checked
51 minutes ago

Tools for package owners.