Documentation ¶
Index ¶
- func Setup(mgr ctrl.Manager) (string, error)
- func ValidateClusterQueue(cq *kueue.ClusterQueue) field.ErrorList
- func ValidateClusterQueueUpdate(newObj *kueue.ClusterQueue) field.ErrorList
- func ValidateResourceFlavor(rf *kueue.ResourceFlavor) field.ErrorList
- func ValidateWorkload(obj *kueue.Workload) field.ErrorList
- func ValidateWorkloadUpdate(newObj, oldObj *kueue.Workload) field.ErrorList
- type ClusterQueueWebhook
- func (w *ClusterQueueWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ClusterQueueWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ClusterQueueWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *ClusterQueueWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type CohortWebhook
- func (w *CohortWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *CohortWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *CohortWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *CohortWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ResourceFlavorWebhook
- func (w *ResourceFlavorWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *ResourceFlavorWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *ResourceFlavorWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *ResourceFlavorWebhook) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type WorkloadWebhook
- func (w *WorkloadWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (w *WorkloadWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *WorkloadWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (w *WorkloadWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
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
Types ¶
type ClusterQueueWebhook ¶
type ClusterQueueWebhook struct{}
func (*ClusterQueueWebhook) Default ¶
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 ¶
func (w *ClusterQueueWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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 CohortWebhook ¶ added in v0.9.0
type CohortWebhook struct{}
func (*CohortWebhook) ValidateCreate ¶ added in v0.9.0
func (w *CohortWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*CohortWebhook) ValidateDelete ¶ added in v0.9.0
func (w *CohortWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*CohortWebhook) ValidateUpdate ¶ added in v0.9.0
func (w *CohortWebhook) 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 ¶
func (w *ResourceFlavorWebhook) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
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 ¶
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