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 ¶
func (r *TenantObjWebhookHandler) Handle(ctx context.Context, req admission.Request) admission.Response
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.
Click to show internal directories.
Click to hide internal directories.