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

Schema pull at runtime #33

Open
tjungblu opened this issue Mar 28, 2024 · 1 comment · May be fixed by #53
Open

Schema pull at runtime #33

tjungblu opened this issue Mar 28, 2024 · 1 comment · May be fixed by #53

Comments

@tjungblu
Copy link

It seems that we have to support a fairly big matrix of etcd versions x kubernetes versions x(+- crds installed).

Looking into autogen in #2 and James's effort in #32, which is a great start into getting this project updated - is this a viable path forward?

All the API descriptors are either available from Github or directly from the apiserver and we could also pull them on demand from there, given the currently installed etcd and k8s version.

Another important addition to k8s since the project start are CRDs, how would we get their schema if not from apiserver directly?

@siyuanfoundation
Copy link
Contributor

siyuanfoundation commented Apr 2, 2024

Thanks @tjungblu for raising the issue.

  1. I don't think we need to support all the matrix of etcd versions x kubernetes versions x(+- crds installed) because etcd/bbolt backend storage rarely change (not within the major version). I think we should support all the actively supported K8s versions, and for other versions, @wzshiming would add documentation regarding how to update the scheme for a specific K8s version for users to use locally.

  2. CRDs currently can be read with --output=json and that is generally how it is encoded in k8s as well. I think there are discussions regarding other encoders for CRDs. Until that changes, we do not really need to worry about that. However we do need to add better documentation of how to decode CRDs.

@jmhbnz WDYT?

@wzshiming wzshiming linked a pull request May 11, 2024 that will close this issue
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 a pull request may close this issue.

2 participants