Documentation ¶
Overview ¶
Package webhook contains validating and mutating webhooks that are used by the Startup CPU Boost
Index ¶
- func NewPodCPUBoostWebHook(mgr boost.Manager, scheme *runtime.Scheme, removeLimits bool) *webhook.Admission
- func Setup(mgr ctrl.Manager) (string, error)
- type StartupCPUBoostWebhook
- func (w *StartupCPUBoostWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *StartupCPUBoostWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *StartupCPUBoostWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPodCPUBoostWebHook ¶
Types ¶
type StartupCPUBoostWebhook ¶ added in v0.2.0
type StartupCPUBoostWebhook struct{}
func (*StartupCPUBoostWebhook) ValidateCreate ¶ added in v0.2.0
func (w *StartupCPUBoostWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*StartupCPUBoostWebhook) ValidateDelete ¶ added in v0.2.0
func (w *StartupCPUBoostWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*StartupCPUBoostWebhook) ValidateUpdate ¶ added in v0.2.0
func (w *StartupCPUBoostWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.