-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move JobSet webhook into same webhooks package as pod webhook #460
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielvegamyhre The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
/retest |
Makefile
Outdated
@@ -84,11 +84,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust | |||
rbac:roleName=manager-role output:rbac:artifacts:config=config/components/rbac\ | |||
crd:generateEmbeddedObjectMeta=true output:crd:artifacts:config=config/components/crd/bases\ | |||
webhook output:webhook:artifacts:config=config/components/webhook\ | |||
paths="./..." | |||
paths="{./api/..., ./pkg/...}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I had to change some Makefile rules to target specific paths rather than everything (./...
) since it was picking up some javascript dependencies in the site/ directory, now that it is populated.
/hold until I can talk to @alexzielenski when he is back from kubecon to learn more about kubectl-validate and it's roadmap for improved support for k8s native types |
a1e177f
to
f419e88
Compare
0930d95
to
b012506
Compare
/hold cancel |
Please rebase. Otherwise, lgtm. |
Finished rebasing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Included in this PR:
v1alpha2
) intopkg/webhooks
with the pod webhook. This decoupling of the JobSet struct itself from the webhook used for JobSet defaulting/validation seemed necessary for a couple reasons:Validator
field (from kubectl-validate) to the webhook for Investigate ways to validate Job templates at JobSet validation time #422 so we only create the OpenAPI client for kubectl-validate once, and I don't think the JobSet struct is the proper place for that openapi client based validator.