v1

package
v0.0.0-...-60b33e1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TicketRequestAnnotation is used to request a specific ticket
	TicketRequestAnnotation = "korder.dev/ticket-request"
	// OrderRequestAnnotation is used to request resources from a specific order
	OrderRequestAnnotation = "korder.dev/order-request"
	// TicketClaimedAnnotation is set when a pod claims a ticket
	TicketClaimedAnnotation = "korder.dev/ticket-claimed"
	// TicketNodeAnnotation is set to indicate which node the ticket is bound to
	TicketNodeAnnotation = "korder.dev/ticket-node"
)

Variables

This section is empty.

Functions

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager) error

SetupPodWebhookWithManager registers the webhook for Pod in the manager.

Types

type PodCustomDefaulter

type PodCustomDefaulter struct {
	Client client.Client
}

PodCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Pod when those are created or updated.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as it is used only for temporary operations and does not need to be deeply copied.

func (*PodCustomDefaulter) Default

func (d *PodCustomDefaulter) Default(ctx context.Context, obj runtime.Object) error

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

type PodCustomValidator

type PodCustomValidator struct {
	Client client.Client
}

PodCustomValidator struct is responsible for validating the Pod resource when it is created, updated, or deleted.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*PodCustomValidator) ValidateCreate

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

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

func (*PodCustomValidator) ValidateDelete

func (v *PodCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

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

func (*PodCustomValidator) ValidateUpdate

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

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

Jump to

Keyboard shortcuts

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