Documentation ¶
Overview ¶
Package validating delegates admission checks to dynamically configured validating webhooks.
Package validating checks a non-mutating webhook for configured operation admission
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type GenericAdmissionWebhook
- func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
- func (a *GenericAdmissionWebhook) SetAuthenticationInfoResolverWrapper(wrapper config.AuthenticationInfoResolverWrapper)
- func (a *GenericAdmissionWebhook) SetExternalKubeClientSet(client clientset.Interface)
- func (a *GenericAdmissionWebhook) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (a *GenericAdmissionWebhook) SetScheme(scheme *runtime.Scheme)
- func (a *GenericAdmissionWebhook) SetServiceResolver(sr config.ServiceResolver)
- func (a *GenericAdmissionWebhook) ValidateInitialization() error
- type WebhookSource
Constants ¶
const (
// Name of admission plug-in
PluginName = "GenericAdmissionWebhook"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericAdmissionWebhook ¶
type GenericAdmissionWebhook struct { *admission.Handler // contains filtered or unexported fields }
GenericAdmissionWebhook is an implementation of admission.Interface.
func NewGenericAdmissionWebhook ¶
func NewGenericAdmissionWebhook(configFile io.Reader) (*GenericAdmissionWebhook, error)
NewGenericAdmissionWebhook returns a generic admission webhook plugin.
func (*GenericAdmissionWebhook) Admit ¶
func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
Admit makes an admission decision based on the request attributes.
func (*GenericAdmissionWebhook) SetAuthenticationInfoResolverWrapper ¶
func (a *GenericAdmissionWebhook) SetAuthenticationInfoResolverWrapper(wrapper config.AuthenticationInfoResolverWrapper)
TODO find a better way wire this, but keep this pull small for now.
func (*GenericAdmissionWebhook) SetExternalKubeClientSet ¶
func (a *GenericAdmissionWebhook) SetExternalKubeClientSet(client clientset.Interface)
WantsExternalKubeClientSet defines a function which sets external ClientSet for admission plugins that need it
func (*GenericAdmissionWebhook) SetExternalKubeInformerFactory ¶
func (a *GenericAdmissionWebhook) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
func (*GenericAdmissionWebhook) SetScheme ¶
func (a *GenericAdmissionWebhook) SetScheme(scheme *runtime.Scheme)
SetScheme sets a serializer(NegotiatedSerializer) which is derived from the scheme
func (*GenericAdmissionWebhook) SetServiceResolver ¶
func (a *GenericAdmissionWebhook) SetServiceResolver(sr config.ServiceResolver)
SetServiceResolver sets a service resolver for the webhook admission plugin. Passing a nil resolver does not have an effect, instead a default one will be used.
func (*GenericAdmissionWebhook) ValidateInitialization ¶
func (a *GenericAdmissionWebhook) ValidateInitialization() error
ValidateInitialization implements the InitializationValidator interface.
type WebhookSource ¶
type WebhookSource interface { Run(stopCh <-chan struct{}) Webhooks() (*v1alpha1.ValidatingWebhookConfiguration, error) }
WebhookSource can list dynamic webhook plugins.