webhookconfig

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MutatingWebhookConfigurationKind   string = "MutatingWebhookConfiguration"
	ValidatingWebhookConfigurationKind string = "ValidatingWebhookConfiguration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceWebhookRegister added in v1.1.0

type ResourceWebhookRegister struct {
	LastReqTime *checker.LastReqTime
	// contains filtered or unexported fields
}

func NewResourceWebhookRegister added in v1.1.0

func NewResourceWebhookRegister(
	lastReqTime *checker.LastReqTime,
	mconfigwebhookinformer mconfiginformer.MutatingWebhookConfigurationInformer,
	webhookRegistrationClient *WebhookRegistrationClient,
) *ResourceWebhookRegister

func (*ResourceWebhookRegister) RegisterResourceWebhook added in v1.1.0

func (rww *ResourceWebhookRegister) RegisterResourceWebhook()

func (*ResourceWebhookRegister) RemoveResourceWebhookConfiguration added in v1.1.0

func (rww *ResourceWebhookRegister) RemoveResourceWebhookConfiguration() error

func (*ResourceWebhookRegister) Run added in v1.1.0

func (rww *ResourceWebhookRegister) Run(stopCh <-chan struct{})

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

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) GetResourceMutatingWebhookConfigName added in v1.1.0

func (wrc *WebhookRegistrationClient) GetResourceMutatingWebhookConfigName() string

GetResourceMutatingWebhookConfigName provi

func (*WebhookRegistrationClient) Register

func (wrc *WebhookRegistrationClient) Register() error

Register creates admission webhooks configs on cluster

func (*WebhookRegistrationClient) RemoveResourceMutatingWebhookConfiguration added in v0.9.0

func (wrc *WebhookRegistrationClient) RemoveResourceMutatingWebhookConfiguration() error

RemoveResourceMutatingWebhookConfiguration removes mutating webhook configuration for all resources

func (*WebhookRegistrationClient) RemoveWebhookConfigurations added in v1.1.0

func (wrc *WebhookRegistrationClient) RemoveWebhookConfigurations(cleanUp chan<- struct{})

RemoveWebhookConfigurations removes webhook configurations for reosurces and policy called during webhook server shutdown

Jump to

Keyboard shortcuts

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