kubernetes / kubernetes/kubectl

Place CACHEDIR.TAG file in ~/.kube/cache and ~/.kube/http-cache

Open
#1,044 25 comments 5 reactions 2 assignees Claimed by @yashasvimisra2798 View on GitHub
help wanted kind/feature needs-triage priority/backlog
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.