Skip to content

Same values -> different fields

[source]

Store is very helpful when you need to pass the same values to different fields with your releases.

Project Structure

.
├── README.md
├── a.yml
├── b.yml
└── helmwave.yml

helmwave.yml

releases:
- name: a
  chart:
    name: my/a
  store:
    msg: hello
  values:
  - a.yml

- name: b
  chart:
    name: my/b
  store:
    msg: hello
  values:
    - b.yml

a.yml

image:
  repository: nginx

greeting: {{ .Release.Store.msg }}

b.yml

image:
  tag: v1.0.0

message: {{ .Release.Store.msg }} world

After run helmwave build you get

a.yml

image:
  repository: nginx

greeting: hello

b.yml

image:
  tag: v1.0.0

message: hello world
Back to top