[FEATURE_REQUEST] Merge arbitrary values.yaml when checking a helm chart

Aperta
#706 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
go, kubernetes
Ambito
cli

Direzione di ricerca

The request is a new --values option for the lint command, applied when rendering a Helm chart directory. Start from the CLI flag definitions and from the code path that renders a chart before linting it, and check how the chart's default values are loaded. Done means extra values files are merged over the defaults in order, and the rendered objects are linted. The issue has had no reply for about two years, so confirm with maintainers that the approach is wanted before writing code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description of the problem/feature request
Allow kube-linter to receive an arbitrary amount of values.yaml files (just like helm upgrade does) when checking a helm chart.

Description of the existing behavior vs. expected behavior

We deploy several "variations" of the same workload across environments, and those variations we control via values.yaml.

We have a baseline behavior (no added values), and then with --values %the-file%.yml we enable/disable extra features for that environment.

We'd like to catch potential errors on the chart when using those special files too.

Additional context

Something like:

kube-linter lint --verbose --fail-if-no-objects-found --fail-on-invalid-resource --values "custom.yaml" helm-chart/

And that would load the default values.yaml inside the helm-chart directory as well as merging the values defined in custom.yaml on top of the aforementioned.

I'm open to contribute this change!

Lingua principale
Go
Stelle
3.5k
Fork
277
Merge medio
1g 22m
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stackrox/kube-linter

Tutte le issue di stackrox/kube-linter

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.