https://github.com/shihyuho/helm-values
Helm plugin to merge one or more YAML files of values
https://github.com/shihyuho/helm-values
helm helm-plugin kubernetes values
Last synced: 11 months ago
JSON representation
Helm plugin to merge one or more YAML files of values
- Host: GitHub
- URL: https://github.com/shihyuho/helm-values
- Owner: shihyuho
- License: apache-2.0
- Archived: true
- Created: 2018-08-03T09:41:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T10:40:15.000Z (over 7 years ago)
- Last Synced: 2025-02-13T11:46:14.161Z (12 months ago)
- Topics: helm, helm-plugin, kubernetes, values
- Language: Go
- Size: 27.3 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/shihyuho/helm-values)
[](https://github.com/shihyuho/helm-values/blob/master/LICENSE)
[](https://github.com/shihyuho/helm-values/releases)
# Helm Values Plugin
[Helm](https://github.com/helm/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.
[](https://asciinema.org/a/195778)
## Install
Fetch the latest binary release of helm-values and install it:
```sh
$ helm plugin install https://github.com/shihyuho/helm-values
```
## Usage
```sh
$ helm values [flags] CHART
```
### Flags
```sh
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:
```sh
.
├── mychart
│ ├── .helmignore
│ ├── Chart.yaml
│ ├── charts
│ ├── templates
│ └── values.yaml
└── myenv
├── dev.yaml
├── sit.yaml
└── uat.yaml
```
The script for package different environments chart archive:
```sh
# 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
```