Documentation
¶
Index ¶
- func CheckGPUReservation(container corev1.Container) bool
- func SetupDeploymentWebhookWithManager(mgr ctrl.Manager) error
- func SetupRayJobWebhookWithManager(mgr ctrl.Manager) error
- func SetupRayServiceWebhookWithManager(mgr ctrl.Manager) error
- type DeploymentCustomDefaulter
- type JobWebhook
- func (j *JobWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (j *JobWebhook) InjectDecoder(d *admission.Decoder) error
- func (j *JobWebhook) SetupJobWebhookWithManager(mgr ctrl.Manager) error
- func (j *JobWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (j *JobWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (j *JobWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type RayJobCustomDefaulter
- type RayServiceCustomDefaulter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGPUReservation ¶
func SetupDeploymentWebhookWithManager ¶
SetupDeploymentWebhookWithManager registers the webhook for Deployment in the manager.
func SetupRayJobWebhookWithManager ¶
SetupRayJobWebhookWithManager registers the webhook for RayJob in the manager.
func SetupRayServiceWebhookWithManager ¶
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.
type JobWebhook ¶
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 (*JobWebhook) ValidateDelete ¶
func (*JobWebhook) ValidateUpdate ¶
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.
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.