webhook

package
v1.9.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

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.

Jump to

Keyboard shortcuts

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