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 ¶
func (r *ManagementClusterObjWebhookHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle is the function to handle validating requests of ManagementClusterObjs.
func (*ManagementClusterObjWebhookHandler) InjectDecoder ¶
func (r *ManagementClusterObjWebhookHandler) InjectDecoder(d *admission.Decoder) error
ManagementClusterObjWebhookHandler implements admission.DecoderInjector. A decoder will be automatically injected. InjectDecoder injects the decoder.
Click to show internal directories.
Click to hide internal directories.