webhook

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package webhook contains validating and mutating webhooks that are used by the Startup CPU Boost

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodCPUBoostWebHook

func NewPodCPUBoostWebHook(mgr boost.Manager, scheme *runtime.Scheme) *webhook.Admission

func Setup added in v0.2.0

func Setup(mgr ctrl.Manager) (string, error)

Setup sets up the webhooks for core controllers. It returns the name of the webhook that failed to create and an error, if any.

Types

type StartupCPUBoostWebhook added in v0.2.0

type StartupCPUBoostWebhook struct{}

func (*StartupCPUBoostWebhook) ValidateCreate added in v0.2.0

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*StartupCPUBoostWebhook) ValidateDelete added in v0.2.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL