webhooks

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

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.

func ValidateClusterQueue

func ValidateClusterQueue(cq *kueue.ClusterQueue) field.ErrorList

func ValidateClusterQueueUpdate

func ValidateClusterQueueUpdate(newObj, _ *kueue.ClusterQueue) field.ErrorList

func ValidateResourceFlavor

func ValidateResourceFlavor(rf *kueue.ResourceFlavor) field.ErrorList

func ValidateWorkload

func ValidateWorkload(obj *kueue.Workload) field.ErrorList

func ValidateWorkloadUpdate

func ValidateWorkloadUpdate(newObj, oldObj *kueue.Workload) field.ErrorList

Types

type ClusterQueueWebhook

type ClusterQueueWebhook struct{}

func (*ClusterQueueWebhook) Default

func (w *ClusterQueueWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

func (*ClusterQueueWebhook) ValidateCreate

func (w *ClusterQueueWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*ClusterQueueWebhook) ValidateDelete

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

func (*ClusterQueueWebhook) ValidateUpdate

func (w *ClusterQueueWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

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

type ResourceFlavorWebhook

type ResourceFlavorWebhook struct{}

func (*ResourceFlavorWebhook) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

func (*ResourceFlavorWebhook) ValidateCreate

func (w *ResourceFlavorWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*ResourceFlavorWebhook) ValidateDelete

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

func (*ResourceFlavorWebhook) ValidateUpdate

func (w *ResourceFlavorWebhook) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

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

type WorkloadWebhook

type WorkloadWebhook struct{}

func (*WorkloadWebhook) Default

func (w *WorkloadWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

func (*WorkloadWebhook) ValidateCreate

func (w *WorkloadWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*WorkloadWebhook) ValidateDelete

func (w *WorkloadWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

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

func (*WorkloadWebhook) ValidateUpdate

func (w *WorkloadWebhook) 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