Documentation
¶
Index ¶
- func SetupRayClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupRayJobWebhookWithManager(mgr ctrl.Manager) error
- func SetupRayServiceWebhookWithManager(mgr ctrl.Manager) error
- type RayClusterWebhook
- func (w *RayClusterWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *RayClusterWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *RayClusterWebhook) ValidateUpdate(_ context.Context, _ runtime.Object, newObj runtime.Object) (admission.Warnings, error)
- type RayJobWebhook
- func (w *RayJobWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *RayJobWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *RayJobWebhook) ValidateUpdate(_ context.Context, _ runtime.Object, newObj runtime.Object) (admission.Warnings, error)
- type RayServiceWebhook
- func (w *RayServiceWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *RayServiceWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *RayServiceWebhook) ValidateUpdate(_ context.Context, _ runtime.Object, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRayClusterWebhookWithManager ¶
SetupRayClusterWebhookWithManager registers the webhook for RayCluster in the manager.
func SetupRayJobWebhookWithManager ¶ added in v1.5.0
SetupRayJobWebhookWithManager registers the webhook for RayJob in the manager.
func SetupRayServiceWebhookWithManager ¶ added in v1.5.0
SetupRayServiceWebhookWithManager registers the webhook for RayService in the manager.
Types ¶
type RayClusterWebhook ¶
type RayClusterWebhook struct{}
func (*RayClusterWebhook) ValidateCreate ¶
func (w *RayClusterWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*RayClusterWebhook) ValidateDelete ¶
func (w *RayClusterWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
type RayJobWebhook ¶ added in v1.5.0
type RayJobWebhook struct{}
func (*RayJobWebhook) ValidateCreate ¶ added in v1.5.0
func (w *RayJobWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*RayJobWebhook) ValidateDelete ¶ added in v1.5.0
func (w *RayJobWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
type RayServiceWebhook ¶ added in v1.5.0
type RayServiceWebhook struct{}
func (*RayServiceWebhook) ValidateCreate ¶ added in v1.5.0
func (w *RayServiceWebhook) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*RayServiceWebhook) ValidateDelete ¶ added in v1.5.0
func (w *RayServiceWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type