Closed tomassatka closed 3 years ago
@tomassatka Hey! This one seems to be due to a potential bug in Helmfile. Helmfile should probably pass SkipDeps: false
to chartify on destroy in this case, but apparently it doesn't.
Helmfile's calling Chartify
function defined in this package and I thought it set SkipDeps there. It would be great if you could take a look into helmfile code and submit a PR for the fix. Otherwise give me some time to work on it.
@tomassatka Out of curiosity, are you using adhoc dependencies
in your helmfile.yaml? Or is it just that you do a fresh clone of your git repo containing helmfile.yaml and your local chart before you run helmfile destroy
, and your local chart doesn't have dependencies committed to the repo?
Well, I was able to reproduce it with adhod dependencies as follows, anyway.
releases:
- name: foo
chart: incubator/raw
kubeContext: ctx1
forceNamespace: foo-system
values:
- resources:
- metadata:
name: bar
apiVersion: v1
kind: ConfigMap
- name: bar
chart: incubator/raw
kubeContext: ctx2
forceNamespace: bar-system
dependencies:
- chart: stable/envoy
values:
- resources:
- metadata:
name: bar
apiVersion: v1
kind: ConfigMap
$ ./helmfile destroy
in ./helmfile.yaml: [exit status 1
COMMAND:
helm template --debug=false --output-dir=/tmp/chartify291800095/ctx2/bar/raw/helmx.1.rendered --include-crds bar /tmp/chartify291800095/ctx2/bar/raw -f /tmp/chartify291800095/ctx2/bar/raw/values.yaml -f /tmp/helmfile400073381/bar-values-78c97785f
OUTPUT:
WARNING: This chart is deprecated
Error: found in Chart.yaml, but missing in charts/ directory: envoy]
Hi
While using helmfile destroy i observed following error:
Basically i can install but cant uninstall with destroy since it says that SkipDeps=true.
using image:
roboll/helmfile:helm3-v0.138.7
Offering my help again.