vmware-archive / kubecfg

A tool for managing complex enterprise Kubernetes environments as code.
Apache License 2.0
728 stars 62 forks source link

Implement local file cache for HTTP URLs #309

Open tinyzimmer opened 3 years ago

tinyzimmer commented 3 years ago

This PR implements a dumb local cache for files fetched remotely. Cache location defaults to <user_cache_dir>/kubecfg. Files are written to subdirectories matching the "path" fields in the URL.

The location of the cache is configurable with the --cache-dir flag.