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

[RFE] Generate the k8s types automatically #539

Open
joaquimrocha opened this issue Jun 1, 2022 · 3 comments
Open

[RFE] Generate the k8s types automatically #539

joaquimrocha opened this issue Jun 1, 2022 · 3 comments
Assignees
Labels
frontend Issues related to the frontend

Comments

@joaquimrocha
Copy link
Collaborator

Current situation

We have a subset of the kubernetes resource types declared by us and getting up to date/completed on a need-basis.

Impact

It takes take and it's error-prone to manually declare those types.

Ideal future situation

We should be able to generate those types using the OpenAPI spec.

Implementation options

TBD

@joaquimrocha joaquimrocha added the frontend Issues related to the frontend label Jun 1, 2022
@yolossn
Copy link
Contributor

yolossn commented Jun 6, 2022

The js-client for kubernetes generates the types using the OpenAPI spec, From my initial understanding I think we can import the types directly from it.
Refer

@joaquimrocha joaquimrocha added this to the v0.11.0 milestone Jun 14, 2022
@joaquimrocha joaquimrocha modified the milestones: v0.11.0, v0.12.0 Jul 13, 2022
@joaquimrocha joaquimrocha modified the milestones: v0.12.0, v0.13.0 Aug 11, 2022
@yolossn
Copy link
Contributor

yolossn commented Sep 14, 2022

Invested more time porting namespaces to client-js types, the amount of changes is very high just for importing the types. I think we should wait and see how the effort on kubernetes-client/javascript#754 goes and migrate to using the client-js library for both networking + types.

4cf0717

cc: @joaquimrocha

@joaquimrocha joaquimrocha modified the milestone: v0.13.0 Sep 27, 2022
@joaquimrocha
Copy link
Collaborator Author

Let's pause this for now until we have a better understanding of what makes sense to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Issues related to the frontend
Projects
None yet
Development

No branches or pull requests

2 participants