Skip to content
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 codegen scripts and make required api changes #96

Merged
merged 4 commits into from
Nov 3, 2021

Conversation

harryge00
Copy link
Contributor

@harryge00 harryge00 commented Nov 2, 2021

Why are these changes needed?

To support clientset for RayCluster objects, we may use code-gen to generate clientset. With PR, you can run hack/update-codegen.sh to generate clientset. The generated code will be at pkg/client/clientset

Related issue number

#29

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@harryge00
Copy link
Contributor Author

@Jeffwan

ray-operator/go.mod Outdated Show resolved Hide resolved
@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 2, 2021

@harryge00 Do you mind giving me the collaborator permission to your repo and I can co-author with you in this PR?
Or I can cherry-pick your changes to separate PR.

Which one do you prefer?

@harryge00
Copy link
Contributor Author

@Jeffwan I've invited you to my repo.

harryge00 and others added 4 commits November 2, 2021 19:48
Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
1. Add update-codegen.sh and verify-codegen.sh
2. Add required changes to register.go and doc.go and //+genclient tag in raycluster_types.go

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
@Jeffwan Jeffwan changed the title Codegen scripts Add codegen scripts and make required api changes Nov 2, 2021
@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 2, 2021

@harryge00 I update the PR and manually generate clients but have not checked in. Please have a review

@Jeffwan Jeffwan mentioned this pull request Nov 2, 2021
4 tasks
@Jeffwan Jeffwan merged commit ea7dabd into ray-project:master Nov 3, 2021
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this pull request Sep 24, 2023
* Update go modules to include code-generator

* Add scripts to generate clients

* Clean up code-generator dependency

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>

* Update codegen scripts and make required api changes

1. Add update-codegen.sh and verify-codegen.sh
2. Add required changes to register.go and doc.go and //+genclient tag in raycluster_types.go

Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>

Co-authored-by: Jiaxin Shan <seedjeffwan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants