Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
/ helm-values Public archive

Helm plugin to merge one or more YAML files of values

License

Notifications You must be signed in to change notification settings

shihyuho/helm-values

Build Status License Build Status

Helm Values Plugin

Helm doesn't support specify value.yaml when packaging chart archive. Therefore this plugin helps developers merge one or more YAML files of values for easily packaging different environments Helm Charts.

asciicast

Install

Fetch the latest binary release of helm-values and install it:

$ helm plugin install https://github.com/shihyuho/helm-values

Usage

$ helm values [flags] CHART

Flags

Flags:
      --backup-suffix string   suffix append to values.yaml if values.yaml already exist in output-dir (default ".bak")
  -h, --help                   help for helm
  -o, --output-dir string      writes the merged values to files in output-dir instead of stdout
  -f, --values valueFiles      specify values in a YAML file (can specify multiple) (default [])

Example

The structure is like:

.
├── mychart
│   ├── .helmignore
│   ├── Chart.yaml
│   ├── charts
│   ├── templates
│   └── values.yaml
└── myenv
    ├── dev.yaml
    ├── sit.yaml
    └── uat.yaml

The script for package different environments chart archive:

# Merge sit values.yaml
$ helm values mychart --values myenv/sit.yaml --output-dir mychart

# Package
$ helm package mychart

# Restore values.yaml
$ mv mychart/values.yaml.bak mychart/values.yaml