Get a dependency's default values.yaml and append it to the consuming chart's values.yaml file to save time when working with helm dependencies.
- Reduce errors by copying a dependency's default values in the proper yaml file structure
- Quickly review default configurations, override and keep portions that are needed and delete what is not
Requirements
- python 2.7+
- git
- helm
Run in your favorite terminal (Run as Administrator in Windows)
helm plugin install http://github.com/android2221/helm-get-values
- Be sure to have added your dependent charts according to this guide: https://docs.helm.sh/helm/#helm-dependency
- Navigate to the directory that contains your outer values.yaml file to run these commands
Command:
helm get-values <chartname>
Example:
helm get-values stable/wordpress
- Open values.yaml, edit and remove things you don't need to override the dependency's default values
Run in your favorite terminal (Run as Administrator in Windows)
helm plugin remove get-values