#helmfile - February 2024

February 2024
CraigB
CraigBover 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 Or
Rafael Orover 2 years ago(edited)
Hi everyone, I realized that when templating with 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 
yxxhero
yxxheroover 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
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" }} 

CraigB
CraigBover 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 wait on the dependent charts mean that Helmfile would not proceed until those charts resources have been changed?
Bastien
Bastienover 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
parent:
  value1: toto
  value2: tata

in the default values.yaml of the chart

In my helmfile config I defined something like
parent:
  value3: titi

The end result is something like
parent:
  value1: toto
  value2: tata
  value3: titi

The only solution I found is to explicitely set the parent chart values to undefined like :
parent:
  value1:
  value2:

Is this the way to go ?