webhooks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TenantObjWebhookHandler

type TenantObjWebhookHandler struct {
	Log    logr.Logger
	Scheme *runtime.Scheme

	// Client has a global cache, and is used to perform Create/Update request with dry-run flag to against the Catapult webhook.
	client.Client
	// NamespacedClient has a namespace-only cache, and is only allowed to access the provider namespace,
	// this is used to fetch the DerivedCustomResource object.
	NamespacedClient client.Client

	TenantGVK, ProviderGVK schema.GroupVersionKind

	DerivedCRName, ProviderNamespace string
	// contains filtered or unexported fields
}

TenantObjWebhookHandler handles TenantObjs validation.

func (*TenantObjWebhookHandler) Handle

Handle is the function to handle TenantObjs validating requests.

func (*TenantObjWebhookHandler) InjectDecoder

func (r *TenantObjWebhookHandler) InjectDecoder(d *admission.Decoder) error

TenantObjWebhookHandler implements admission.DecoderInjector. A decoder will be automatically injected. InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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