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

chore: introduce conversion-gen to generate conversion functions #129

Merged
merged 1 commit into from
May 24, 2024

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented May 20, 2024

Ref. #128 (review), it seems like we soon want to add another API version of SubNamespace. To avoid hand-writing error-prone code to convert similar/identical API versions of resources, I think it's time to introduce conversion-gen - the tool used by upstream Kubernetes to generate efficient conversion functions.

Since we dramatically change the status subresource between v1 and v2 of SubNamespace, it does not add significant value right now. But when introducing v2beta1 and/or v2 versions it makes more sense.

@zoetrope zoetrope self-requested a review May 21, 2024 10:01
@zoetrope zoetrope merged commit ba1a6a6 into cybozu-go:main May 24, 2024
7 checks passed
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