 Documentation
      ¶
      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 ¶
- func Register(plugins *admission.Plugins)
- type ErrCallingWebhook
- type GenericAdmissionWebhook
- func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
- func (a *GenericAdmissionWebhook) SetClientCert(cert, key []byte)
- func (a *GenericAdmissionWebhook) SetExternalKubeClientSet(client clientset.Interface)
- func (a *GenericAdmissionWebhook) SetServiceResolver(sr admissioninit.ServiceResolver)
- func (a *GenericAdmissionWebhook) Validate() error
 
- type RuleMatcher
- type WebhookSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrCallingWebhook ¶
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 ¶
func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
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.
 Click to show internal directories. 
   Click to hide internal directories.