Giter Club home page Giter Club logo

Comments (10)

rimusz avatar rimusz commented on July 17, 2024 1

it needs to be implemented :)

for now use export KUBECONFIG=single_kubeconfig_file

from helm-2to3.

hickeyma avatar hickeyma commented on July 17, 2024

@alexandrsemak It probably needs to handle different kubeconfigs instead of using the standard/default. However, the error message is rather confusing. Just trying to get better understanding of your set-up so I can troubleshoot this.

For the case that is working, how are you using one kubeconfig file wrt:

  • Helm 2
  • Helm 3
  • plugin

For the case that is not working, how are you using multiple kubeconfig files wrt:

  • Helm 2
  • Helm 3
  • plugin

from helm-2to3.

oleksandrsemak avatar oleksandrsemak commented on July 17, 2024

@hickeyma
With multiple kubeconfig i have KUBECONFIG=$cluster1:/$cluster2:.... and kubectx for switching between them.
With single kubeconfig file I have used the same evn but just left only one kubeconfig KUBECONFIG=$cluster1

from helm-2to3.

hickeyma avatar hickeyma commented on July 17, 2024

@alexandrsemak Does Helm v2 and Hem v3 have any issues with the multiple kubeconfigs? Do you have to pass --kubeconfig for running Helm commands?

from helm-2to3.

oleksandrsemak avatar oleksandrsemak commented on July 17, 2024

@hickeyma
with kubectx i don't use --kubeconfig
kubectx use kubectl config set-context under the hood

from helm-2to3.

rimusz avatar rimusz commented on July 17, 2024

I was able to reproduce it with export KUBECONFIG=$cluster1:/$cluster2 got the same
error:

$ helm3 2to3 convert --tiller-out-cluster --dry-run mysql
NOTE: This is in dry-run mode, the following actions will not be executed.
Run without --dry-run to take the actions described below:

Release "mysql" will be converted from Helm 2 to Helm 3.
[Helm 3] Release "mysql" will be created.
2019/09/25 10:26:55 stat /Users/rimas/.kube/test-cluster-1_config:/Users/rimas/.kube/test-cluster-2_config: no such file or directory
Error: plugin "2to3" exited with error

2to3 plugin treats them as one file.

from helm-2to3.

rimusz avatar rimusz commented on July 17, 2024

ideally it should not be part of the plugin, we could just add a note, single kubeconfig is only supported.

this plugin is only for releases migration purposes, no needs to support export KUBECONFIG=$cluster1:/$cluster2 use case.

from helm-2to3.

oleksandrsemak avatar oleksandrsemak commented on July 17, 2024

why plugin just not able use current context? which use kubectl with set-context

from helm-2to3.

rimusz avatar rimusz commented on July 17, 2024

How to use single kubeconfig in env var KUBECONFIG was documented in #63

from helm-2to3.

hickeyma avatar hickeyma commented on July 17, 2024

Finally, getting back to this issue again.

I have tracked it down to an issue with the helm-plugin-utils library. Issue was already raised in project and have pushed a PR to fix it

from helm-2to3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.