-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge remote helmfile with local values #1205
Comments
I don't think I'm following you correctly but we've been using this syntax for some time. It works for us. |
I discovered strange behavior. upd. Reproducing the problem
helmfiles:
- path: git::https://github.com/XenoAura/helmfile-test.git@helmfile.yaml?ref=master
values:
- metallb-vals.yaml
configInline:
address-pools:
- name: ingress
protocol: layer2
addresses:
- 10.12.12.184-10.12.12.184
prometheus:
serviceMonitor:
enabled: false
prometheusRule:
enabled: false $ helmfile --log-level debug template instead of values from
another repo: https://gitlab.com/XenoAura/helmfile-test.git@helmfile.yaml?ref=master |
We are using Gitlab:) Probably our case is a bit different as we are utilizing
and we run this like |
Running into the same problem. Using the syntax shown in the README.md doesn't use the provided values file: ...
helmfiles:
- path: path/to/subhelmfile.yaml
values:
# Values files merged into the nested state's values
- additional.values.yaml
... Also your workaround @andrewnazarov doesn't work for us: environments:
default:
values:
- values.yaml
helmfiles:
- path: git::https://gitlab.com/path/to/project@helmfile.yaml?ref=master
values:
- values.yaml |
@baurmatt what is your helmfile version? |
@andrewnazarov v0.114.0 |
I think the problem is: You can't override values which are defined in other values YAML includes. For example this doesn't work: helmfile-to-be-included.yaml ...
releases:
- name: foo
...
values:
- values.yaml # Uses replica: 1
... helmfile.yaml: helmfiles:
- path: path/to/helmfile-to-be-included.yaml
values:
- values-override.yaml # Uses replica: 2 But this seems to work: helmfile-to-be-included.yaml ...
releases:
- name: foo
...
values:
- replica: 1
... helmfile.yaml: helmfiles:
- path: path/to/helmfile-to-be-included.yaml
values:
- values-override.yaml # Uses replica: 2 |
Yes, our case is your second example. We don't have these nested references. In our remote helmfile we have inline values only. |
Thanks for checking! :) Sadly this approach doesn't work for us, as we depend on two different files of values being used in the sub helmfile:
This is because the |
I am using submodules to overcome this issue. |
It would be nice if the following syntax was implemented. Remote helmfile and local values are not currently being merged.
Originally posted by @kamsz in #469 (comment)
The text was updated successfully, but these errors were encountered: