#helmfile - March 2021

Balazs Varga
Balazs Vargaover 5 years ago
hello all, is there a way to give failover docker & helm repository in case the 1st give error 5xx or not accessible ?
Lukasz K
Lukasz Kover 5 years ago
hey gang, I'm using vals to retrieve secrets from aws secrets manager.
This is may config {{ .Values.awsSecret | expandSecretRefs | toYaml | nindent 2 }}
Now, the problem: one of the value on the secret starts with # which is then treated as a comment in yaml. any idea how to wrap values with "" or something?
Lukasz K
Lukasz Kover 5 years ago
something like piping trhough | quote would be ideal
Lukasz K
Lukasz Kover 5 years ago
it turns out that I was missing | quote in the k8s secret definition, boom, solved
Marcus Ramberg
Marcus Rambergover 5 years ago
Anyone had success using helmfile secrets with aws sso? Getting a 'deprecated' message
 NoCredentialProviders: no valid providers in chain. Deprecated.

Slackbot
Slackbotover 5 years ago
This message was deleted.
Rene Hernandez
Rene Hernandezover 5 years ago
Hi everyone. have anyone here has had success integrating helmfile with the helm unittest plugin? https://github.com/lrills/helm-unittest
Ihor Urazov
Ihor Urazovover 5 years ago
I’m installing certain chart from external repo via helmfile. This chart has post-upgrade hook, and I want to run this hook on first install too (job that applies migrations in db). Is this doable in helmfile? Also what would be general recommendation to manually run hook specific job from chart?
Andrew Nazarov
Andrew Nazarovover 5 years ago
I’m wondering if some mechanisms exist to prevent privateKey: <ref+gcpsecrets://blablabla> from failing during helmfile template when I don’t have this secret created yet.
Loukas Agorgianitis
Loukas Agorgianitisover 5 years ago
Hello
Loukas Agorgianitis
Loukas Agorgianitisover 5 years ago
Quick question, does helmfile somehow support to set a values file for all environments using a template?
I wanted something like this globally applied:
values:
  - .env.{{ .Environment.Name }}.yaml
Balazs Varga
Balazs Vargaover 5 years ago
if I install a chart like this
- name: chart-name
  namespace: default
  chart: repo/chart-name
  version: 2.5.4
  wait: true

How could I add an additional yaml like secretfile to the installation ?
Nenad Strainovic
Nenad Strainovicover 5 years ago
Hi everyone. I'm trying to use https://github.com/roboll/helmfile/blob/master/docs/advanced-features.md but I'm not sure what I'm doing wrong as I cannot see any kustomize calls when I try to replace container registry before deployment. Any hint please? Thanks
Balazs Varga
Balazs Vargaover 5 years ago
if I have the following folder structures
charts
config
environments
helmfile.d
• 00-foo.yaml
where 00-foo.yaml contains the releases

bases:
  - ../repositories.yaml
  - ../environments.yaml

{{ readFile "../templates.yaml" }}

values:
  - ../environments/example.yaml

releases:
- name: bar
  namespace: default
  chart: charthub/bar
  version: 1.0.0
  <<: *default
  strategicMergePatches:
    .....

and templates.yaml contains the following

templates:
  default: &default
    missingFileHandler: Debug
    values:
      - ../config/{{ .Release.Name }}/values.yaml
      - ../config/{{ .Release.Name }}/values.yaml.gotmpl
      - ../config/{{ .Release.Name }}/{{ .Environment.Name }}.yaml
      - ../config/{{ .Release.Name }}/{{ .Environment.Name }}.yaml.gotmpl

can I somehow move the strategicmergepatches to a new folder like I did with values? ( I create a file under config/bar/values.yaml). so I don't need to mess up my 00-foo.yaml file
Sam Buckingham
Sam Buckinghamover 5 years ago
Is anyone facing issues with roboll.io DNS?
12:43:43  COMBINED OUTPUT:
12:43:43    Error: looks like "<http://roboll.io/charts>" is not a valid chart repository or cannot be reached: Get <http://roboll.io/charts/index.yaml>: dial tcp: lookup <http://roboll.io|roboll.io> on 169.254.169.254:53: no such host

Ryan Smith
Ryan Smithover 5 years ago(edited)
How would you base64 encode an ssm reference in helmfile?

var: <ref+awsssm://path/to/var>

Like, what is the order of rendering? Would I be able to pipe into b64enc ?
Mariano
Marianoover 5 years ago
hi guys, i'm trying to add a k8s secret definition template as .yaml using the helmfiles directive as described in https://github.com/roboll/helmfile/tree/v0.138.7 . But i'm facing this error when running diff (or template)
parsing: template: stringTemplate:5: function "include" not defined

i've included an {{ include "valueX"}} in it and that is what the error refers to, so: is that the correct way of pointing using helmfiles directive? directly to a yaml file? or is it done similarly to a dependency directive in helmsman for example which points to a whole chart directory (with /templates and Chart.yaml included)?