Skip to content

Commit d981e7e

Browse files
committed
Implement webhook validations for the XGBoostJob
Signed-off-by: Yuki Iwai <[email protected]>
1 parent 1a73cf1 commit d981e7e

File tree

8 files changed

+424
-317
lines changed

8 files changed

+424
-317
lines changed

manifests/base/webhook/manifests.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,23 @@ webhooks:
4444
resources:
4545
- tfjobs
4646
sideEffects: None
47+
- admissionReviewVersions:
48+
- v1
49+
clientConfig:
50+
service:
51+
name: webhook-service
52+
namespace: system
53+
path: /validate-kubeflow-org-v1-xgboostjob
54+
failurePolicy: Fail
55+
name: validator.xgboostjob.training-operator.kubeflow.org
56+
rules:
57+
- apiGroups:
58+
- kubeflow.org
59+
apiVersions:
60+
- v1
61+
operations:
62+
- CREATE
63+
- UPDATE
64+
resources:
65+
- xgboostjobs
66+
sideEffects: None

pkg/apis/kubeflow.org/v1/xgboost_validation.go

-87
This file was deleted.

pkg/apis/kubeflow.org/v1/xgboost_validation_test.go

-222
This file was deleted.

0 commit comments

Comments
 (0)