kubernetes-sigs/kubectl-validate
View on GitHubGitHub downloader subject to rate limits
Open
#17 opened on May 4, 2023
good first issue
Repository metrics
- Stars
- (268 stars)
- PR merge metrics
- (PR metrics pending)
Description
For unsupported schemas we have the option of downloading them from GitHub. This requires 1 or 2 api calls to list Kubernetes source directories. GitHub responses support E-Tags in their responses so can be cached without affecting the rate limit. We should add an on-disk cache similar to kubectl that stores the etags.
Another improvement would be to use the GitHub api key if supplied in envar or argument. That way the test suite would not ever be subject to rate limiting.