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
Add CRD validation schemata #17
Conversation
hack/update-crd-validation/main.go
Outdated
|
||
func main() { | ||
// load existing manifests from manifests/ dir | ||
existingManifests, err := crdsFromDirectory("manifests") |
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.
I'm ok starting here. Seems like we should just generate everything though
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.
what else?
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.
We have to copy this mechanism to all repos that have CRDs.
@sttts had to tweak the generator? I can live with that, but maybe a separate commit to make more easily pickable? /lgtm |
Do we still want to pursue kubernetes-sigs/controller-tools#144? Could do everything from the makefile without a hack file and a dependency on the controller tools. I'm open to either |
bbc680a
to
a4f05a5
Compare
No tweaking. I copy files where the generator expects them, and I only copy the validation part. So whatever the generator does outside, we don't care. @damemi's PR against the generator will fix this, so we can make use of more if we want to. |
a4f05a5
to
ae95dd7
Compare
ae95dd7
to
1388a76
Compare
9d222dc
to
cbfc3c8
Compare
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
Makefile
Outdated
@@ -31,3 +31,14 @@ $(call add-bindata,v3.11.0,./bindata/v3.11.0/...,bindata,v311_00_assets,pkg/oper | |||
clean: | |||
$(RM) ./cluster-config-operator | |||
.PHONY: clean | |||
|
|||
update-codegen: |
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.
Don't you want to move that to library-go?
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.
@tnozicka fyi
cbfc3c8
to
816863a
Compare
New changes are detected. LGTM label has been removed. |
8897700
to
5b91af9
Compare
/retest |
9 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
996e403
to
1858160
Compare
New changes are detected. LGTM label has been removed. |
bd2a6d7
to
24ea0a8
Compare
24ea0a8
to
2323f55
Compare
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: deads2k, soltysh, sttts 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 |
nothing has merged, looks like tide doesn't see approved. merging |
No description provided.