Documentation ¶
Index ¶
- type WebhookRegistrationClient
- func (wrc *WebhookRegistrationClient) CreateResourceMutatingWebhookConfiguration() error
- func (wrc *WebhookRegistrationClient) Register() error
- func (wrc *WebhookRegistrationClient) RemovePolicyWebhookConfigurations(cleanUp chan<- struct{})
- func (wrc *WebhookRegistrationClient) RemoveResourceMutatingWebhookConfiguration()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookRegistrationClient ¶
type WebhookRegistrationClient struct { MutationRegistered *abool.AtomicBool ValidationRegistered *abool.AtomicBool // contains filtered or unexported fields }
WebhookRegistrationClient is client for registration webhooks on cluster
func NewWebhookRegistrationClient ¶
func NewWebhookRegistrationClient(clientConfig *rest.Config, client *client.Client, serverIP string, webhookTimeout int32) (*WebhookRegistrationClient, error)
NewWebhookRegistrationClient creates new WebhookRegistrationClient instance
func (*WebhookRegistrationClient) CreateResourceMutatingWebhookConfiguration ¶ added in v0.9.0
func (wrc *WebhookRegistrationClient) CreateResourceMutatingWebhookConfiguration() error
CreateResourceMutatingWebhookConfiguration create a Mutatingwebhookconfiguration resource for all resource type used to forward request to kyverno webhooks to apply policeis Mutationg webhook is be used for Mutating & Validating purpose
func (*WebhookRegistrationClient) Register ¶
func (wrc *WebhookRegistrationClient) Register() error
Register creates admission webhooks configs on cluster
func (*WebhookRegistrationClient) RemovePolicyWebhookConfigurations ¶ added in v0.9.0
func (wrc *WebhookRegistrationClient) RemovePolicyWebhookConfigurations(cleanUp chan<- struct{})
RemovePolicyWebhookConfigurations removes webhook configurations for reosurces and policy called during webhook server shutdown
func (*WebhookRegistrationClient) RemoveResourceMutatingWebhookConfiguration ¶ added in v0.9.0
func (wrc *WebhookRegistrationClient) RemoveResourceMutatingWebhookConfiguration()
RemoveResourceMutatingWebhookConfiguration removes mutating webhook configuration for all resources