Skip to content

Commit

Permalink
Implement webhook validations for the XGBoostJob
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
  • Loading branch information
tenzen-y committed Apr 5, 2024
1 parent a618d1c commit 58713da
Show file tree
Hide file tree
Showing 8 changed files with 425 additions and 317 deletions.
20 changes: 20 additions & 0 deletions manifests/base/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,23 @@ webhooks:
resources:
- pytorchjobs
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: webhook-service
namespace: system
path: /validate-kubeflow-org-v1-xgboostjob
failurePolicy: Fail
name: vxgboostjob.kb.io
rules:
- apiGroups:
- kubeflow.org
apiVersions:
- v1
operations:
- CREATE
- UPDATE
resources:
- xgboostjobs
sideEffects: None
87 changes: 0 additions & 87 deletions pkg/apis/kubeflow.org/v1/xgboost_validation.go

This file was deleted.

222 changes: 0 additions & 222 deletions pkg/apis/kubeflow.org/v1/xgboost_validation_test.go

This file was deleted.

Loading

0 comments on commit 58713da

Please sign in to comment.