Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
messiahUA opened this issue Jul 11, 2019 · 2 comments
Open

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

messiahUA opened this issue Jul 11, 2019 · 2 comments

Comments

@messiahUA
Copy link

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
Copy link

mheers commented Jul 11, 2019

You can update your helmfile like this:

helmDefaults:
  timeout: 600
  # kubeContext: {{ .Environment.Values.kubeContext }}
  args:
    - "----kubecontext {{ .Environment.Values.kubeContext }}"

@messiahUA
Copy link
Author

Works with the notion that I had to add:

environments:
  default:
    values:
      - kubeContext: kubernetes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants