kubernetes / kubernetes/kubectl
Place CACHEDIR.TAG file in ~/.kube/cache and ~/.kube/http-cache
- Dominant language
- Go
- Stars
- 3.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
**What would you like to be added**:
`~/.kube/cache` and `~/.kube/http-cache` are cache folders that do not need to be backed up. Until the [kubernetes/kubernetes#56402](https://github.com/kubernetes/kubernetes/issues/56402) issue is resolved I propose a trivial change that is add a `CACHEDIR.TAG` file in these folders following [the standard](https://bford.info/cachedir/).
TLDR: Create a `CACHEDIR.TAG` file in `~/.kube/cache` and `~/.kube/http-cache` containing the following line:
```
Signature: 8a477f597d28d172789f06886806bc55
```
**Why is this needed**:
To avoid that the cache dirs `~/.kube/cache` and `~/.kube/http-cache` are included in backup systems wasting space.
Contributor guide
Assessment
This issue has not been assessed yet.