-
Notifications
You must be signed in to change notification settings - Fork 1
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
code-gen: provide types and generator scripts #1
Conversation
fc09fdf
to
a5b62a2
Compare
@@ -0,0 +1,55 @@ | |||
module github.com/maiqueb/persistentips |
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.
my plan is to keep this in a personal repo, then "donate" the CRD to the k8snetworkplumbingwg.
Plus push an update proposal to the kubernetes multi network de-facto standard.
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 on singular vs plural name
Can you amend please the commits with the commands used to generate stuff ? |
86750e0
to
59900fd
Compare
59900fd
to
4dea445
Compare
4dea445
to
7f98396
Compare
Also provide a minimal github workflow to build the code. Signed-off-by: Miguel Duarte Barroso <[email protected]>
To run the code generators, the user should execute the `hack/update-codegen.sh` script. The generated code will be located in `pkg/crd/persistentip/v1alpha1/github.com`. Then, it must be copied to the correct place: ``` cp -r \ pkg/crd/persistentip/v1alpha1/github.com/maiqueb/persistentips/pkg/crd/persistentip/v1alpha1/apis/* \ pkg/crd/persistentip/v1alpha1/ ``` Signed-off-by: Miguel Duarte Barroso <[email protected]>
Keeping the vendor commit isolated helps during code review, since there are a lot less files - meaning the github web UI will have less to render. Please review commit by commit. Signed-off-by: Miguel Duarte Barroso <[email protected]>
The binary should be compiled using the following command: ``` go build -o _out/persistentips_dummy_client cmd/example/main.go ``` Then executed via: ``` _out/persistentips_dummy_client --kubeconfig ~/.kube/config ``` Signed-off-by: Miguel Duarte Barroso <[email protected]>
Signed-off-by: Miguel Duarte Barroso <[email protected]>
Signed-off-by: Miguel Duarte Barroso <[email protected]>
7f98396
to
5b2946c
Compare
Also provide a minimal github workflow to build the code.
At this stage, what I'm most looking for is:
PersistentIP
/PersistentIPs
/PersistentIPAMAllocation
/IPAMAllocation
w/ a persistent flag ? ....