webhookconfig

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 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) DeregisterAll

func (wrc *WebhookRegistrationClient) DeregisterAll()

DeregisterAll deletes webhook configs from cluster This function does not fail on error: Register will fail if the config exists, so there is no need to fail on error

func (*WebhookRegistrationClient) DeregisterMutatingWebhook

func (wrc *WebhookRegistrationClient) DeregisterMutatingWebhook()

func (*WebhookRegistrationClient) Register

func (wrc *WebhookRegistrationClient) Register() error

Register creates admission webhooks configs on cluster

func (*WebhookRegistrationClient) RegisterMutatingWebhook

func (wrc *WebhookRegistrationClient) RegisterMutatingWebhook() error

func (*WebhookRegistrationClient) RegisterPolicyValidatingWebhook

func (wrc *WebhookRegistrationClient) RegisterPolicyValidatingWebhook() error

func (*WebhookRegistrationClient) RegisterValidatingWebhook

func (wrc *WebhookRegistrationClient) RegisterValidatingWebhook() error

Jump to

Keyboard shortcuts

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