Code Monkey home page Code Monkey logo

Comments (4)

hferentschik avatar hferentschik commented on May 28, 2024

I guess it could at least provide a better message.

from minishift.

jorgemoralespou avatar jorgemoralespou commented on May 28, 2024

@hferentschik I would probably think that the best way is to include a minishift serviceaccount in the cluster, that will never expire and use that service account when interacting with minishift. This will avoid these kind of issues, where the tool interacts with the openshift cluster in it.

As a regular user you will always use "oc" command line and will need to log in explicitly. As a "plus" option, one could provide a minishift login that would just ask for username and password as the cluster identity would be the one of the one active cluster. Avoiding the need of the "oc login" to know which cluster needs to connect. This minishift login command would update the KUBECONFIG file accordingly. (Just a thought)

from minishift.

hferentschik avatar hferentschik commented on May 28, 2024

I would probably think that the best way is to include a minishift serviceaccount in the cluster, that will never expire and use that service account when interacting with minishift. This will avoid these kind of issues, where the tool interacts with the openshift cluster in it.

+1 Interesting idea. For the cases where minishift has to interact with the cluster, this sounds like a good idea.

As a "plus" option, one could provide a minishift login that would just ask for username and password

hmm, not sure about this one. Maybe

from minishift.

praveenkumar avatar praveenkumar commented on May 28, 2024

This is already fixed now since we are now making copy of kubeconfig and run all oc command using it which doesn't require any oc session info.

$ ./minishift openshift service list
|-----------|-----------------|----------|------------------------------------------------------|--------|
| NAMESPACE |      NAME       | NODEPORT |                      ROUTE-URL                       | WEIGHT |
|-----------|-----------------|----------|------------------------------------------------------|--------|
| default   | kubernetes      |          |                                                      |        |
|           | router          |          |                                                      |        |
|           | docker-registry |          | http://docker-registry-default.192.168.42.198.nip.io |        |
|-----------|-----------------|----------|------------------------------------------------------|--------|

[prkumar@dhcp193-13 bin]$ oc logout
Logged "developer" out on "https://192.168.42.198:8443"

[prkumar@dhcp193-13 bin]$ ./minishift openshift service list
|-----------|-----------------|----------|------------------------------------------------------|--------|
| NAMESPACE |      NAME       | NODEPORT |                      ROUTE-URL                       | WEIGHT |
|-----------|-----------------|----------|------------------------------------------------------|--------|
| default   | kubernetes      |          |                                                      |        |
|           | router          |          |                                                      |        |
|           | docker-registry |          | http://docker-registry-default.192.168.42.198.nip.io |        |
|-----------|-----------------|----------|------------------------------------------------------|--------|

Closing this now.

from minishift.

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.