#helmfile (2021-05)

https://github.com/roboll/helmfile

Questions and discussion around helmfile https://github.com/roboll/helmfile and https://github.com/cloudposse/helmfiles Archive: https://archive.sweetops.com/helmfile/

2021-05-11

Balazs Varga avatar
Balazs Varga

hello all, let’s say I have dev and prod env-s If I would like to deploy dev I just need to run helmfile apply, for prod I need to mention with -e prod apply… is there a way to check it from a variable that I can get from cluster ?

Michael Seiwald avatar
Michael Seiwald

Hi all, are remote helmfiles via HTTPS supposed to work? E.g. this helmfile.yaml leads to an error:

helmfiles:
  - path: <https://raw.githubusercontent.com/cloudposse/helmfiles/master/releases/external-dns/helmfile.yaml>

2021-05-07

2021-05-05

CH avatar

Is it at all possible to set values for a release from a file located inside a chart? Something like:

releases:
- name: my-app
  chart: my-helm-repo/my-app
  version: 1.0.2
  values:
  - {{ .Release.ChartPath }}/values/{{ .Environment.Name }}.yaml
CH avatar

The goal here is to version our environment values same way our app charts are versioned, and promote them in lockstep.

CH avatar

So that the same commit that adds a new value to a chart can also populate it in the environment values files (and likewise for removal or other changes).

CH avatar

Would be super simple if we could just include the environment values files in the chart itself, instead of trying to download them from Git or something

Vladimir Avdoshka avatar
Vladimir Avdoshka

interesting idea, I wonder to hear if there is some solution

2021-05-04

yuri avatar

Hey guys, could not find an answer to what i was looking for… is there a way to pass ENV VARS to helm-secrets plugin? the plugin supports some flags that im interested in like: HELM_SECRETS_DRIVER_ARGS and HELM_SECRETS_DEC_SUFFIX, i tried to export them before helmfile runs and also with prepare hooks, but it doesn’t seems to affect the plugin in any way, if i export them and then use directly helm secrets …. it works

yuri avatar
roboll/helmfile attachment image

Deploy Kubernetes Helm Charts. Contribute to roboll/helmfile development by creating an account on GitHub.

2021-05-03

Balazs Varga avatar
Balazs Varga

hello all, I have a define :

{{- define "x" -}}
{{ if .value }}
  {{- printf .value -}}
{{ else }}
  {{- exec "kubectl" (list "get" "configmap" "data" "-n" "namespace" "--output=jsonpath={.data.userdata }} }" ) -}}
{{ end }}
{{ end }}

and a template to call it

userdata: {{ template "x" . }}

is there a way to pass params to the define line from template like

(dict "value" .Values.data.user "key" "region")

If I could pass params like namespace, resource type, endpoint in jsonpath… then I could use only few defines and not lots of… thanks in advance

Antoine Taillefer avatar
Antoine Taillefer

I believe so, try:

{{ template "x" (merge (dict "value" .Values.data.user "key" "region") .) }}
1
Balazs Varga avatar
Balazs Varga

I think I found it. my problem was I use kubectl to get data if env not exists and I just passed the value to the jsonpath and it did not work, so I hjad to pass the full –output… part and it works.

Joaquin Menchaca avatar
Joaquin Menchaca

How do you configure helm --name_template in a helmfile.yaml? I didn’t see an option for this, and I was digging through the code, I couldn’t spot if it was or was not supported.

    keyboard_arrow_up