Hans Kristian Flaatten
7d7ca74a05
docs: update link to documentation for latest released version ( #293 )
2018-09-04 21:49:21 +09:00
KUOKA Yusuke
f1ac50bf44
feat: `apply` run `sync` against only affected releases ( #291 )
...
Enhance the `diff` functionality to be able to return affected releases that has any changes,
so that the succeeding `sync` can be run against only the affected releases.
This provides us extra idempotency.
Resolves #277
2018-09-04 21:48:43 +09:00
KUOKA Yusuke
60843cc224
fix: Setting concurrency>1 with single release breaks sync ( #290 )
...
Fixes #287
2018-09-04 20:59:24 +09:00
Karl Stoney
53dea091e3
Fix set in `helmfile template` and `helmfile lint` ( #289 )
...
This removes --concurrenty flag from `helmfile template` and `helmfile lint`. YAGNI.
Also separates out the downloadCharts into a function so it can be used by lint too.
Fixes #288
2018-09-04 20:55:32 +09:00
KUOKA Yusuke
5510de4765
feat(apply): update repos and and deps before running diff ( #286 )
...
Resolves #271
2018-09-04 16:12:43 +09:00
Karl Stoney
93c5d4c219
feat: `helmfile template` ( #284 )
...
`helmfile template` runs `helm template` over releases within the helmfiles, and provide you a stream of generated yaml documents of Kubernetes resources via stdout.
Resolves #283
2018-09-04 11:31:43 +09:00
KUOKA Yusuke
8a90e5320c
feat: Ability to call arbitrary command from a template ( #282 )
...
Resolves #244
2018-09-03 16:48:03 +09:00
rmartinez3
6be53b1bcc
WIP: adding to be albe to set multiple flags for --set, -f, --value in args ( #278 )
...
* adding to be albe to set multiple flags for --set, -f, --value in args
* add test for passing a set flag with two or more key-values
2018-09-03 16:45:02 +09:00
KUOKA Yusuke
b0cc7ba96c
fix: `sync` partially run `helm upgrade` even one of releases failed while loading values.yaml ( #281 )
...
Fixes #280
2018-09-03 16:43:57 +09:00
KUOKA Yusuke
54f1567294
feat: --suppress-secrets of diff and apply commands ( #272 )
...
Adds `--suppress-secrets` to `helmfile apply` and `helmfile diff`, so that the diff command omits the contents of secrets from its output. This is a security feature that should always be turned on for CI/CD use-cases.
With `--suppress-secrets`, the output when there is any change looks like:
```
Comparing bar stable/grafana
default, baz-grafana, Secret (v1) has changed:
+ Changes suppressed on sensitive content of type Secret
```
Resolves #269
2018-09-02 21:21:29 +09:00
KUOKA Yusuke
046281c70f
feat: Environment Secrets ( #274 )
...
Resolves #255
2018-09-02 21:07:35 +09:00
KUOKA Yusuke
98617f78e3
fix: `--args "--set foo=bar"` always result in "unknown flag: --set foo" error ( #268 )
...
Ref #248
2018-09-02 21:06:38 +09:00
KUOKA Yusuke
ed0854a5c0
feat: Environment and Environment Values ( #267 )
...
Resolves #253
2018-08-31 22:59:27 +09:00
KUOKA Yusuke
7c793fdb88
feat: `helmfiles: <ordered glob patterns of helmfiles>` configuration ( #266 )
...
Resolves #247
2018-08-31 12:03:18 +09:00
Dan Wendorf
b70956b5d8
Bump Helm 2.9.1 -> 2.10.0 ( #265 )
2018-08-31 10:17:51 +09:00
KUOKA Yusuke
3840605e04
feat: helmfile apply [--auto-approve] ( #263 )
...
This command syncs releases only if there is any difference between the desired and the current state. It asks for an confirmation by default. Provide `--auto-approve` flag after the `apply` command to skip it.
Resolves #205
2018-08-31 10:15:02 +09:00
KUOKA Yusuke
bb3b44e511
fix: follow up for the relative paths improvement ( #262 )
...
Fixes for the bugs that are introduced by #261 , that is values.yaml files specified in `values:` have redundant base path in their prefixes, and remaining .dec files after secrets decryption(https://github.com/roboll/helmfile/issues/251#issuecomment-417285854 )
2018-08-30 21:59:59 +09:00
KUOKA Yusuke
421299c883
feat: All the paths are relative to helmfile.yaml ( #261 )
...
`helmfile lint` works with relative chart reference (#252 )
The tempalte function `readFile` accepts the path relative to helmfile.yaml
Resolves #246
Fixes #252
2018-08-30 19:47:52 +09:00
KUOKA Yusuke
79f0e70ce8
fix: avoid "cross-device link" errors while decrypting secrets ( #260 )
...
ref https://github.com/roboll/helmfile/issues/251#issuecomment-417166296
2018-08-30 17:20:38 +09:00
KUOKA Yusuke
0c8a89cbaf
fix: coordinate secret decryption ( #259 )
...
Fixes #258
2018-08-30 17:03:45 +09:00
KUOKA Yusuke
b3ebd4cdd0
fix: Keep backward-compatibility broken after introduction of values file template ( #257 )
...
Fixes #249
2018-08-30 16:57:37 +09:00
Shane Starcher
9b71c64ef2
fix: use temporary file for secret file to prevent deletion collision ( #250 )
...
Fixes #167
2018-08-30 09:28:26 +09:00
KUOKA Yusuke
822cc13e72
feat: Template functions to replace `set`s ( #242 )
...
Resolves #227
2018-08-28 22:00:51 +09:00
KUOKA Yusuke
0ac8401d1e
feat: feat: Configurable default values for --verify, --force, --recreate-pods, and --timeout ( #241 )
...
Resolves #230
2018-08-28 15:11:05 +09:00
KUOKA Yusuke
815ee1f85b
feat: --force, --recreate-pods, --timeout as first-class citizens in helmfile.yaml ( #239 )
...
Resolves #229
2018-08-27 23:06:16 +09:00
KUOKA Yusuke
2c36640ad2
To reduce integration test flakiness
2018-08-27 23:04:16 +09:00
KUOKA Yusuke
faaf172615
fix: panic on flag parsing error ( #238 )
...
This is a follow-up for #235 .
We setup the default logger only after the flags are parsed successfully.
That's because we init the logger according to the --log-level flag value.
2018-08-27 22:58:25 +09:00
KUOKA Yusuke
fcbd6aff29
fix: Relative path in KUBECONFIG envvar ( #237 )
...
Resolves #173
2018-08-27 22:53:17 +09:00
Shane Starcher
543a653864
improve error handling for value rendering ( #235 )
...
Fixes #233
Output on values render error:
```
err: failed to render [/Users/sstarcher/xxx/xxx/values.yaml], because of template: stringTemplate:10:18: executing "stringTemplate" at <requiredEnv "HELM_AC...>: error calling requiredEnv: required env var `HELM_ACCOUNT` is not set
```
Also removes panic and sets the output as `apps.Run()` can and will return errors. Panic makes no sense.
Changelog:
* improve error handling for value rendering
* only output if error exists
* add exit status
2018-08-27 12:53:25 +09:00
rmartinez3
fa69ac2cfa
fix: Args being reordered ( #224 )
...
Fixes #212
2018-08-27 10:41:00 +09:00
KUOKA Yusuke
2121fe57b2
Merge pull request #232 from mumoshu/set-array
...
feat: set array
2018-08-24 17:12:17 +09:00
Yusuke KUOKA
cfcafa2e46
feat: set array
...
Fixes #148
2018-08-24 17:01:34 +09:00
KUOKA Yusuke
b6d2ee9d43
Merge pull request #231 from mumoshu/partly-allow-duplicate-release-name
...
fix: helmfile should fail on duplicate release name after filtered by labels
2018-08-24 16:43:38 +09:00
Yusuke KUOKA
35542b5516
fix: helmfile should fail on duplicate release name after filtered by labels
...
This is a follow-up for #218 , fixes the unintentional degradation that broken the use-case described in https://github.com/roboll/helmfile/issues/193#issuecomment-415434408
2018-08-24 16:18:08 +09:00
KUOKA Yusuke
45d0f1c8e4
Merge pull request #228 from mumoshu/set-file
...
feat: Support for helm's --set-file
2018-08-24 13:44:07 +09:00
KUOKA Yusuke
96d0781b85
Merge pull request #226 from mumoshu/usage-without-internet
...
doc: Using helmfile without an Internet connection
2018-08-24 13:43:53 +09:00
Yusuke KUOKA
48e65791c0
feat: Support for helm's --set-file
...
Resolves #207
2018-08-24 13:06:31 +09:00
Yusuke KUOKA
2398ad2f35
doc: Using helmfile without an Internet connection
...
Resolves #155
2018-08-24 12:10:18 +09:00
KUOKA Yusuke
013276f576
Merge pull request #225 from mumoshu/unmatched-selector-exit-code
...
feat: exit code 2 on unmatched selectors
2018-08-24 11:47:10 +09:00
Yusuke KUOKA
3a16b7ed91
feat: exit code 2 on unmatched selectors
...
Along with the fix for the bug introduced via #217
Resolves #219
2018-08-24 11:40:30 +09:00
KUOKA Yusuke
a5d42e741b
Merge pull request #223 from mumoshu/show-which-release-failed
...
feat: emit error message containing which release in which helmfile an upgrade failed
2018-08-23 12:00:15 +09:00
Yusuke KUOKA
313b5de378
feat: emit error message containing which release in which helmfile an upgrade failed
...
Resolves #66
2018-08-23 11:45:43 +09:00
KUOKA Yusuke
0541731350
Merge pull request #222 from mumoshu/wait-for-release
...
feat: `wait: true` in each release
2018-08-23 10:43:01 +09:00
Yusuke KUOKA
b4623f0515
feat: `wait: true` in each release
...
To instruct `helm upgrade` to wait for resources via `--wait`
Resolves #65
2018-08-23 10:37:15 +09:00
KUOKA Yusuke
ffa40beff9
Merge pull request #221 from mumoshu/env-files
...
doc: Instruction to use env files
2018-08-23 09:47:01 +09:00
Yusuke KUOKA
4fae044f0e
doc: Instruction to use env files
...
Closes #203
2018-08-23 09:44:42 +09:00
KUOKA Yusuke
d8aa9f305b
Merge pull request #218 from mumoshu/should-fail-on-duplicate-release-name
...
fix: helmfile should fail on duplicate release name
2018-08-23 09:32:03 +09:00
KUOKA Yusuke
c402759363
Merge pull request #217 from mumoshu/less-verbose-unmatched-selector-logging
...
fix: Make logging on unmatched selectors less verbose
2018-08-23 09:27:32 +09:00
Yusuke KUOKA
e84ff05a63
fix: helmfile should fail on duplicate release name
...
Fixes #193
2018-08-23 09:26:39 +09:00
Yusuke KUOKA
fcb75fa851
fix: Make logging on unmatched selectors less verbose
...
Fixes #200
2018-08-23 09:23:55 +09:00