Documentation ¶
Index ¶
- type AppWrapperWebhook
- func (w *AppWrapperWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (wh *AppWrapperWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (w *AppWrapperWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *AppWrapperWebhook) ValidateDelete(context.Context, runtime.Object) (admission.Warnings, error)
- func (w *AppWrapperWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppWrapperWebhook ¶
type AppWrapperWebhook struct { Config *config.AppWrapperConfig SubjectAccessReviewer authClientv1.SubjectAccessReviewInterface DiscoveryClient *discovery.DiscoveryClient // contains filtered or unexported fields }
func (*AppWrapperWebhook) Default ¶
Default ensures that Suspend is set appropriately when an AppWrapper is created
func (*AppWrapperWebhook) SetupWebhookWithManager ¶
func (wh *AppWrapperWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*AppWrapperWebhook) ValidateCreate ¶
func (w *AppWrapperWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate validates invariants when an AppWrapper is created
func (*AppWrapperWebhook) ValidateDelete ¶
func (w *AppWrapperWebhook) ValidateDelete(context.Context, runtime.Object) (admission.Warnings, error)
ValidateDelete is a noop for us, but is required to implement the CustomValidator interface
func (*AppWrapperWebhook) ValidateUpdate ¶
func (w *AppWrapperWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates invariants when an AppWrapper is updated
Click to show internal directories.
Click to hide internal directories.