webhookconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookRegistrationClient

type WebhookRegistrationClient struct {
	// 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) GetResourceMutatingWebhookConfiguration added in v0.10.0

func (wrc *WebhookRegistrationClient) GetResourceMutatingWebhookConfiguration() (*admregapi.MutatingWebhookConfiguration, error)

GetResourceMutatingWebhookConfiguration returns the MutatingWebhookConfiguration

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() error

RemoveResourceMutatingWebhookConfiguration removes mutating webhook configuration for all resources

Jump to

Keyboard shortcuts

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