#helmfile - August 2022

August 2022
Andrew Nazarov
Andrew Nazarovover 4 years ago
We’re thinking how we can use helmfile to add a new object definition to a third-party chart we have no control over. I know that it should be possible, but can’t find any examples. Appreciate any help)
Moath
Moathabout 4 years ago
Hi All,
How can I add an already deployed helm chart to be managed by helmfile?
Thank you!
Rinat Ishmukhametov
Rinat Ishmukhametovabout 4 years ago
Hello everyone, I'm just starting with helmfile and was wandering whether it can sufficiently cover the following use-case:
I have multiple micro-services with separated charts - I use single umbrella-chart to install them at once. Everything works fine until I want to install separate chart into an environment where umbrella had already been installed... I came up with a few hacks but this is wrong and against best practices (according to this issue https://github.com/helm/helm/issues/9433)
Is it possible to manage charts like that with helmfile without aforementioned issue? I.e. install charts both separately and through helmfile?
Rinat Ishmukhametov
Rinat Ishmukhametovabout 4 years ago(edited)
hello again) I think I miss something about Environment values files https://helmfile.readthedocs.io/en/latest/#environment
as per this example I'm able to use separate values from values.yaml in environments section (in the values.yaml.gotmpl)
But is there a way to simply merge the whole values file from environments section?
my helmfile looks like this right now
environments:
  default:
    values:
      - git::<https://gitlab-ci-token>:{{ env "CI_JOB_TOKEN" }}@gitlab

releases:
  - name: my_app
    namespace: staging
    chart: repo/chart
    version: 0.5.0
    values:
      - "values.yaml"
      - "values.yaml.gotmpl"
Sean
Seanabout 4 years ago(edited)
Does helmfile support helm’s native hooks?
"<http://helm.sh/hook|helm.sh/hook>": pre-install,pre-upgrade,post-install,post-upgrade
Jonathan Monnet
Jonathan Monnetabout 4 years ago
hi everyone, did someone already use th adhoc features ?
i'm trying to add certificate generation to my existing helm charts
releases:
- name: concourse
    <<: *default
    dependencies:
    - chart: charts/certificates/

with a subchart like this
├── charts
│  └── certificates
│     ├── Chart.yaml
│     ├── templates
│     │  └── certificate.yaml
│     └── values.yaml

and i've got an error that i don't understand..
COMMAND:
helm template --debug=false --output-dir=/tmp/chartify1738494718/concourse/concourse/concourse/helmx.1.rendered concourse /tmp/chartify1738494718/concourse/concourse/concourse -f /tmp/chartify1738494718/concourse/concourse/concourse/values.yaml -f /tmp/helmfile3009150001/concourse-concourse-values-5968dd4c6b --namespace concourse

OUTPUT:
Error: found in Chart.yaml, but missing in charts/ directory: certificates]
in ./helmfile.yaml: [exit status 1

COMMAND:
helm template --debug=false --output-dir=/tmp/chartify1738494718/concourse/concourse/concourse/helmx.1.rendered concourse /tmp/chartify1738494718/concourse/concourse/concourse -f /tmp/chartify1738494718/concourse/concourse/concourse/values.yaml -f /tmp/helmfile3009150001/concourse-concourse-values-5968dd4c6b --namespace concourse

OUTPUT:
Error: found in Chart.yaml, but missing in charts/ directory: certificates]
Harshith g
Harshith gabout 4 years ago
Anyone facing the same issue ?
Harshith g
Harshith gabout 4 years ago(edited)
Command not found even after installing right before
Balazs Varga
Balazs Vargaabout 4 years ago
how can I use --three-way-erge with helmfile? I added a new annotation to my deployment and tried to set HELM_DIFF_THREE_WAY_MERGE=true an dthen run helmfile diff but I did not get any changes back