mumoshu / helm-x

Treat any Kustomization or K8s manifests directory as a Helm chart
Other
173 stars 13 forks source link

Helm 3 template command doesn't have the --name option #28

Open gmenuel opened 4 years ago

gmenuel commented 4 years ago

In helm3 the template command doesn't have the --name option, the new syntax is helm template [NAME] [CHART] [flags] see https://helm.sh/docs/helm/helm_template/

mtb-xt commented 4 years ago

@mumoshu sorry for poking, but this means helm-x won't work with helm 3, right? or it's something we're misconfiguring?

I'm also getting this error:

Comparing release=external-dns, chart=bitnami/external-dns
in ./helmfile.yaml: in .helmfiles[0]: in releases/external-dns/helmfile.yaml: failed processing release external-dns: helm-x exited with status 255:
  I0504 10:46:22.374139     132 chartify.go:236] using requirements.yaml:
  dependencies:
  I0504 10:46:22.422927     132 replace.go:45] options: {true [/tmp/values432946744] [] kube-system ~2.20
  }
  F0504 10:46:22.470531     132 main.go:51] Error: unknown flag: --name
  helm.go:75: [debug] unknown flag: --name

All I did was that I added integration with helm-x by using helmfile with this command - helmfile --helm-binary /root/.local/share/helm/plugins/helm-x/bin/helm-x --log-level=debug -e dev apply"

dmitrykruglov commented 4 years ago

I'm trying to use helm x template command with helm 3 and I'm getting this error: F0904 14:37:49.801723 20900 main.go:59] Error: unknown flag: --name Error: plugin "x" exited with error

Looks like Helm X is calling helm template with a --name argument which is no longer supported in Helm 3, that's why we're getting this error. That means Helm 3 support is broken right now. I'm using helm-x 0.8.1