webhookconfig

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 13 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 {
	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

Jump to

Keyboard shortcuts

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