Skip to content

Commit

Permalink
Fix paths for webhooks
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Feb 5, 2025
1 parent 1e38960 commit 91bd7ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions manifests/base/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /validate-trainer-v1alpha1-clustertrainingruntime
path: /validate-trainer-kubeflow-org-v1alpha1-clustertrainingruntime
failurePolicy: Fail
name: validator.clustertrainingruntime.kubeflow.org
name: validator.clustertrainingruntime.trainer.kubeflow.org
rules:
- apiGroups:
- trainer.kubeflow.org
Expand All @@ -30,9 +30,9 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /validate-trainer-v1alpha1-trainingruntime
path: /validate-trainer-kubeflow-org-v1alpha1-trainingruntime
failurePolicy: Fail
name: validator.trainingruntime.kubeflow.org
name: validator.trainingruntime.trainer.kubeflow.org
rules:
- apiGroups:
- trainer.kubeflow.org
Expand All @@ -50,9 +50,9 @@ webhooks:
service:
name: webhook-service
namespace: system
path: /validate-trainer-v1alpha1-trainjob
path: /validate-trainer-kubeflow-org-v1alpha1-trainjob
failurePolicy: Fail
name: validator.trainjob.kubeflow.org
name: validator.trainjob.trainer.kubeflow.org
rules:
- apiGroups:
- trainer.kubeflow.org
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhooks/clustertrainingruntime_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func setupWebhookForClusterTrainingRuntime(mgr ctrl.Manager, run map[string]runt
Complete()
}

// +kubebuilder:webhook:path=/validate-trainer-v1alpha1-clustertrainingruntime,mutating=false,failurePolicy=fail,sideEffects=None,groups=trainer.kubeflow.org,resources=clustertrainingruntimes,verbs=create;update,versions=v1alpha1,name=validator.clustertrainingruntime.kubeflow.org,admissionReviewVersions=v1
// +kubebuilder:webhook:path=/validate-trainer-kubeflow-org-v1alpha1-clustertrainingruntime,mutating=false,failurePolicy=fail,sideEffects=None,groups=trainer.kubeflow.org,resources=clustertrainingruntimes,verbs=create;update,versions=v1alpha1,name=validator.clustertrainingruntime.trainer.kubeflow.org,admissionReviewVersions=v1

var _ webhook.CustomValidator = (*ClusterTrainingRuntimeWebhook)(nil)

Expand Down
2 changes: 1 addition & 1 deletion pkg/webhooks/trainingruntime_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func setupWebhookForTrainingRuntime(mgr ctrl.Manager, run map[string]runtime.Run
Complete()
}

// +kubebuilder:webhook:path=/validate-trainer-v1alpha1-trainingruntime,mutating=false,failurePolicy=fail,sideEffects=None,groups=trainer.kubeflow.org,resources=trainingruntimes,verbs=create;update,versions=v1alpha1,name=validator.trainingruntime.kubeflow.org,admissionReviewVersions=v1
// +kubebuilder:webhook:path=/validate-trainer-kubeflow-org-v1alpha1-trainingruntime,mutating=false,failurePolicy=fail,sideEffects=None,groups=trainer.kubeflow.org,resources=trainingruntimes,verbs=create;update,versions=v1alpha1,name=validator.trainingruntime.trainer.kubeflow.org,admissionReviewVersions=v1

var _ webhook.CustomValidator = (*TrainingRuntimeWebhook)(nil)

Expand Down
2 changes: 1 addition & 1 deletion pkg/webhooks/trainjob_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func setupWebhookForTrainJob(mgr ctrl.Manager, run map[string]runtime.Runtime) e
Complete()
}

// +kubebuilder:webhook:path=/validate-trainer-v1alpha1-trainjob,mutating=false,failurePolicy=fail,sideEffects=None,groups=trainer.kubeflow.org,resources=trainjobs,verbs=create;update,versions=v1alpha1,name=validator.trainjob.kubeflow.org,admissionReviewVersions=v1
// +kubebuilder:webhook:path=/validate-trainer-kubeflow-org-v1alpha1-trainjob,mutating=false,failurePolicy=fail,sideEffects=None,groups=trainer.kubeflow.org,resources=trainjobs,verbs=create;update,versions=v1alpha1,name=validator.trainjob.trainer.kubeflow.org,admissionReviewVersions=v1

var _ webhook.CustomValidator = (*TrainJobWebhook)(nil)

Expand Down

0 comments on commit 91bd7ef

Please sign in to comment.