mumoshu / helm-x

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

Execution via helmfile - problem with kube-context flag #21

Open messiahUA opened 5 years ago

messiahUA commented 5 years ago

Trying to execute helmfile as per https://github.com/mumoshu/helm-x/tree/master/examples/helmfile:

helmfile --helm-binary ~/.helm/plugins/helm-x/bin/helm-x --log-level debug apply

but helm-x fails and exits as there is a problem with kube-context flag:

F0711 07:43:52.685204 5736 main.go:51] unknown flag: --kube-context

mheers commented 5 years ago

You can update your helmfile like this:

helmDefaults:
  timeout: 600
  # kubeContext: {{ .Environment.Values.kubeContext }}
  args:
    - "----kubecontext {{ .Environment.Values.kubeContext }}"
messiahUA commented 5 years ago

Works with the notion that I had to add:

environments:
  default:
    values:
      - kubeContext: kubernetes