6 messages
Questions and discussion around helmfile https://github.com/roboll/helmfile and https://github.com/cloudposse/helmfiles
Archive: https://archive.sweetops.com/helmfile/
CraigBabout 2 years ago
Is there a way to prevent deletion of charts downloaded by helmfile? I can see options to preserve the values files but not the charts themselves
Rafael Orabout 2 years ago(edited)
Hi everyone, I realized that when templating with
I have found this open issue https://github.com/helmfile/helmfile/issues/1317, and I have seen this piece of code in chartify.go:https://github.com/helmfile/chartify/blob/31fe0cba35ae1a33ea40e2ae40fe22052693786e/chartify.go#L364-L391
if you take a look there, we can modify the if condition. This will fix the issue:
helmfile template --skip-deps the dependencies added in the helmfile.yaml file are not skipped.I have found this open issue https://github.com/helmfile/helmfile/issues/1317, and I have seen this piece of code in chartify.go:https://github.com/helmfile/chartify/blob/31fe0cba35ae1a33ea40e2ae40fe22052693786e/chartify.go#L364-L391
if you take a look there, we can modify the if condition. This will fix the issue:
if u.SkipDeps && len(u.AdhocChartDependencies) == 0 -> if u.SkipDeps || len(u.AdhocChartDependencies) == 0 yxxheroabout 2 years ago
New feature
• add suppress output line regex support by @yxxhero in #1329
• see more: https://github.com/helmfile/helmfile/blob/v0.162.0/test/integration/test-cases/suppress-output-line-regex/input/helmfile.yaml.gotmpl
• add suppress output line regex support by @yxxhero in #1329
• see more: https://github.com/helmfile/helmfile/blob/v0.162.0/test/integration/test-cases/suppress-output-line-regex/input/helmfile.yaml.gotmpl
helmDefaults:
suppressOutputLineRegex:
- "<http://helm.sh/chart|helm.sh/chart>"
- "<http://app.kubernetes.io/version|app.kubernetes.io/version>"
repositories:
- name: ingress-nginx
url: <https://kubernetes.github.io/ingress-nginx>
releases:
- name: ingress-nginx
namespace: ingress-nginx
chart: ingress-nginx/ingress-nginx
version: {{ env "SUPPRESS_OUTPUT_LINE_REGEX_INGRESS_NGINX_VERSION" | default "4.8.3" }} CraigBabout 2 years ago
Hello, just wondering what strategies people use to make sure that charts/releases are deployed before others?
I use sub helmfiles to group charts by functional area and use a numeric naming convention to ensure that dependent charts are deployed first but I'd like to make sure that dependent charts get updated first (potentially with a specific chart version) so that there's no race conditions on starting pods.
Would using the helmDefault
I use sub helmfiles to group charts by functional area and use a numeric naming convention to ensure that dependent charts are deployed first but I'd like to make sure that dependent charts get updated first (potentially with a specific chart version) so that there's no race conditions on starting pods.
Would using the helmDefault
wait on the dependent charts mean that Helmfile would not proceed until those charts resources have been changed?Bastienalmost 2 years ago
Hello everyone. I have a question about helmfile. I hope you can help me 🙂
Is there a way to tell helmfile to override the values coming from the helm chart instead of merging them ?
Typically I have something like
in the default values.yaml of the chart
In my helmfile config I defined something like
The end result is something like
The only solution I found is to explicitely set the parent chart values to undefined like :
Is this the way to go ?
Is there a way to tell helmfile to override the values coming from the helm chart instead of merging them ?
Typically I have something like
parent:
value1: toto
value2: tatain the default values.yaml of the chart
In my helmfile config I defined something like
parent:
value3: titiThe end result is something like
parent:
value1: toto
value2: tata
value3: titiThe only solution I found is to explicitely set the parent chart values to undefined like :
parent:
value1:
value2:Is this the way to go ?