Liam Dawson
d6bd317c9c
Update templating example typo ( #895 )
2019-10-17 08:25:24 +09:00
eddycharly
fd0133e10a
Update documentation and tests for .Values ( #839 )
...
Resolves #816
2019-09-14 05:35:16 +02:00
a-hat
6dfc9be0d1
doc: Update documentation about layering release values ( #837 )
...
Closes #836
2019-09-06 09:29:08 +09:00
KUOKA Yusuke
4bc99337b2
Make advanced templating backward-compatible ( #833 )
...
This is a follow-up for #823
Ref https://github.com/roboll/helmfile/pull/823#discussion_r319712283
2019-08-31 22:37:46 +09:00
astorath
11d0abba6e
feat: Advanced Templating ( #823 )
...
1. Added `helmfile build` command to print final state
Motivation: useful for debugging purposes and some CI scenarios
Ref #780
2. Template interpolation is now recursive (you can cross-reference release fields) like:
```yaml
templates:
release:
name: {{`app-{{ .Release.Namespace }}`}}
namespace: {{`{{ .Release.Labels.ns }}`}}
labels:
ns: dev
```
3. Experimental: Added some boolean release fields interpolation in templates:
```yaml
templates:
release:
name: {{`app-{{ .Release.Namespace }}`}}
namespace: dev
installedTemplate: {{`{{ eq .Release.Namespace "dev" }}`}}
```
Resolves #818
4. Added more template interpolations: Labels, SetValues
5. Added template interpolation for inline Values
6. Added `helmfile list` command to print target releases in simple tabular form
7. Added release names in some `helm` output messages, e.g.: `Comparing release=%v, chart=%v`
2019-08-31 14:31:31 +09:00
KUOKA Yusuke
3986f6497e
Update writing-helmfile.md
2019-06-04 23:41:26 +09:00
KUOKA Yusuke
1012256f16
feat: "base" helmfile state gotmpl is rendered with the envvals inherited from the parent ( #613 )
...
Resolves #611
2019-05-22 18:28:10 +09:00
Yusuke KUOKA
aef366660b
feat: split-render-merge helmfile.yaml parts
...
This splits your helmfile.yaml by the YAML document separator "---" before evaluating go template expressions as outlined in https://github.com/roboll/helmfile/issues/388#issuecomment-491710348
2019-05-13 21:49:59 +09:00
Yusuke KUOKA
1db205de48
feat: "bases" for easier layerina
...
This adds the new configuration key `baeses` to your helmfile.yaml files, so that you can layer them without the `readFile` template function, which was a bit unintuitive.
Please see https://github.com/roboll/helmfile/issues/388#issuecomment-491710348 for more context
2019-05-13 21:48:00 +09:00
sgandon
57df25c3ff
doc(team): changed the sub-helmfile as template ( #524 )
...
try to make the doc more clear.
2019-04-01 07:41:11 +09:00
KUOKA Yusuke
14a392666e
feat: easier way to share configuration across helmfiles ( #522 )
...
This basically allows to define both `releases` and `helmfiles` within a helmfile.yaml, so that you can start using sub-helmfiles easily, by extracting only reused releases.
Resolves #445
2019-03-31 22:51:06 +09:00
Dan O'Brien
8f7ab740bd
minor typo ( #496 )
2019-03-19 19:14:52 +09:00
Simon Li
abeccc5e8e
Fix indentation in writing-helmfile.md example ( #454 )
2019-01-25 23:32:33 +09:00
KUOKA Yusuke
5f52f96709
fix missingFileHandler ( #440 )
...
- Fix panics when `missingFileHandler` is not defined
- Fix `missingFileHandler: Error` had been writing errors at the Warn level
- Add `Info` and `Debug` as valid values
Ref https://github.com/roboll/helmfile/pull/439#issuecomment-456155521
2019-01-22 11:22:53 +09:00
KUOKA Yusuke
f813ac2642
feat: Release Template ( #439 )
...
This feature is supposed to help advanced use-cases like Conventional Directory Structure explained in several issues like #428 .
Newly added configuration keys `templates`, `missingFileHandler`, and the ability to defer executing template expressions in `values`, `secrets`, `namespace`, and `chart` of releases allows you to abstract away repetitions into a reusable template:
```yaml
templates:
default: &default
missingFileHandler: Warn
namespace: "{{`{{ .Release.Name }}`}}"
chart: stable/{{`{{ .Release.Name }}`}}
values:
- config/{{`{{ .Release.Name }}`}}/values.yaml
- config/{{`{{ .Release.Name }}`}}/{{`{{ .Environment.Name }}`}}.yaml
secrets:
- config/{{`{{ .Release.Name }}`}}/secrets.yaml
- config/{{`{{ .Release.Name }}`}}/{{`{{ .Environment.Name }}`}}-secrets.yaml
releases:
- name: envoy
<<: *default
```
See the updated documentation for more details.
Resolves #428
2019-01-22 01:19:07 +09:00
KUOKA Yusuke
770c3daa5f
feat: `get` and `getOrNil` template funcs to allow defaulting in templates ( #370 )
...
* feat: `get` and `getOrNil` template funcs to allow defaulting in templates
Ref #357
* Add docs about missing keys and default values in templates
2018-09-28 11:44:49 +09:00
KUOKA Yusuke
9808849986
feat: Merge multiple docs inside a single helmfile.yaml ( #270 )
...
Resolves #254
2018-09-19 15:42:01 +09:00