instrumenta / instrumenta/kubeval

Schema cache

Open
#276 0 comments 8 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.2k
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Each time `kubeval` is executed are the k8s schemas downloaded from https://kubernetesjsonschema.dev. It would be great if the fetched schemas could be cached to disk.

The cache could be cleared using a new command: `kubeval purge cache`. The usage of the cache could be disabled by passing a flag: `--no-cache`.

```
cat manifest.yaml | kubeval --kubernetes-version 1.16.0 --no-cache
```

The cache could be stored inside the `$HOME` directory of the user or inside a specific location. `kubeval` should not fail when unable to write the cache to disk (a warning instead could be logged).

This would be very useful for me personally since I am using `kubeval` inside my git hooks to validate my project HELM charts.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.