v1

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGPUReservation

func CheckGPUReservation(container corev1.Container) bool

func SetupDeploymentWebhookWithManager

func SetupDeploymentWebhookWithManager(mgr ctrl.Manager) error

SetupDeploymentWebhookWithManager registers the webhook for Deployment in the manager.

func SetupRayJobWebhookWithManager

func SetupRayJobWebhookWithManager(mgr ctrl.Manager) error

SetupRayJobWebhookWithManager registers the webhook for RayJob in the manager.

func SetupRayServiceWebhookWithManager

func SetupRayServiceWebhookWithManager(mgr ctrl.Manager) error

SetupRayServiceWebhookWithManager registers the webhook for RayService in the manager.

Types

type DeploymentCustomDefaulter

type DeploymentCustomDefaulter struct {
}

DeploymentCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Deployment 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 (*DeploymentCustomDefaulter) Default

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

type JobWebhook

type JobWebhook struct {
	Client client.Client
	// contains filtered or unexported fields
}

func (*JobWebhook) Default

func (j *JobWebhook) Default(ctx context.Context, obj runtime.Object) error

func (*JobWebhook) InjectDecoder

func (j *JobWebhook) InjectDecoder(d *admission.Decoder) error

func (*JobWebhook) SetupJobWebhookWithManager

func (j *JobWebhook) SetupJobWebhookWithManager(mgr ctrl.Manager) error

func (*JobWebhook) ValidateCreate

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

func (*JobWebhook) ValidateDelete

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

func (*JobWebhook) ValidateUpdate

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

type RayJobCustomDefaulter

type RayJobCustomDefaulter struct {
}

RayJobCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind RayJob 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 (*RayJobCustomDefaulter) Default

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

type RayServiceCustomDefaulter

type RayServiceCustomDefaulter struct {
}

RayServiceCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind RayService 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 (*RayServiceCustomDefaulter) Default

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

Jump to

Keyboard shortcuts

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