-
Notifications
You must be signed in to change notification settings - Fork 76
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
Document how to reliably generate CRD code #582
Comments
I update related codes in #565 , but maybe the pr is too large to review. And I'll submit several requests to solve the problem. |
An easy to avoid the problem is to skip pkg dir when running |
@m3ngyang Thanks for your reply! The PR #565 does not contain documentation for how to generate the CRD code. I think we need the documentation for that. It would be great if you can write a documentation for it since you are the one that most familiar with CRD. I will review for you. In this case we should either have a document about how to generate the CRD code to make |
ok, I will submit a pr to describe how to generate codes for crd in this readme doc |
Currently
go test $(glide novendor)
fails with the output:This is due to the Kubernets CRD need developer to run code generation commands before the code could compile.
I tried to follow the commands in https://github.com/PaddlePaddle/cloud/blob/develop/.travis.yml#L15-L18 but
go test $(glide novendor)
still failed with:I guess this is due to
go get k8s.io/kubernetes
used in the generation process is not tagged to a specific version.Could we document how to reliably generate the required code, so that other developers could test all packages inside
go
folder without running into error? Thanks!CC: @m3ngyang : could you take a look? Thanks for contributing!
The text was updated successfully, but these errors were encountered: