-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Generate a schema for the ProwJob crd #19522
Conversation
493cae1
to
a83dcad
Compare
/hold
|
a83dcad
to
ed86605
Compare
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
ed86605
to
9c7b0e2
Compare
4f9f4c2
to
dca7991
Compare
/label tide/merge-method-squash |
248599f
to
429fc65
Compare
component( | ||
"prowjob", | ||
"customresourcedefinition", | ||
args = ["--server-side=true"], |
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.
nit: we're just speculating that this will work, but not sure. might suggest move this change to a separate PR just in case revert is needed we don't need to revert this large PR
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.
Well, not doing this will definitely not work as the PR changes the CRD file 😬
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.
well, finger crossed then
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.
/hold
LGTM other than my nit
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, chaodaiG 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 |
/unhold |
This reverts commit 914737a. Seems like server side apply didn't work: https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/post-test-infra-deploy-prow/1436369391678656512
Revert "Generate a schema for the ProwJob crd (#19522)"
…)"" This reverts commit 0b1d48b.
This PR adds codegeneration that uses controller-gen to generate a CRD
schema for ProwJobs based on the go types. This provides us with two
advantages:
Doing this could result in Prow going down completely.
kubectl explain
can be used to get info about the fields in aprowjob
The only drawback of this change is that we lose the validation that .status.completionTime must be set if
.status.state
is insuccess, error, failure
,as controller-gen doesn't seem to support cross-field validation.Fixes #14925