webhooks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementClusterObjWebhookHandler

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

	// ManagementClusterClient has a namespace-only cache, and is only allowed to access the provider namespace,
	// this is used to fetch the ServiceClusterAssignment object in the KubeCarrier management cluster.
	ManagementClusterClient client.Client

	// ServiceClusterClient has a global cache, and is used to perform Create/Update request with dry-run flag to against
	// the ServiceClusterCRD webhook in the service cluster.
	ServiceClusterClient client.Client

	ManagementClusterGVK, ServiceClusterGVK schema.GroupVersionKind

	ProviderNamespace, ServiceCluster string

	WebhookStrategy corev1alpha1.WebhookStrategyType
	// contains filtered or unexported fields
}

ManagementClusterObjWebhookHandler handles validating of ManagementClusterObjs.

func (*ManagementClusterObjWebhookHandler) Handle

Handle is the function to handle validating requests of ManagementClusterObjs.

func (*ManagementClusterObjWebhookHandler) InjectDecoder

ManagementClusterObjWebhookHandler 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