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

Consider adding support for kubectl discovery cache #86

Open
tintoy opened this issue Jun 10, 2019 · 0 comments
Open

Consider adding support for kubectl discovery cache #86

tintoy opened this issue Jun 10, 2019 · 0 comments

Comments

@tintoy
Copy link
Owner

tintoy commented Jun 10, 2019

Caches live at $HOME/.kube/cache/discovery/${KUBE_API_HOST}_${KUBE_API_PORT}.

  • Inside this directory there is a servergroups.json file that contains a v1/APIGroupList with the cached API groups and their versions.
  • Also inside this directory are subdirectories of the form $API_GROUP_NAME/$API_VERSION, each of which have a serverresources.json file containing a v1/APIResourceList with the cached API resources (i.e. resource types and their corresponding API paths).

Need to investigate the stability of the cache format (as long as the schema matches the APIGroupListV1 and APIResourceListV1 models, we're probably good to go).

CC: @felixfbecker this might help with the dynamic client (since we can preload the cache and make it read-through for anything not already cached).

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

No branches or pull requests

1 participant