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

Project should not fetch client immediately #8782

Merged
merged 1 commit into from May 8, 2016

Conversation

smarterclayton
Copy link
Contributor

oc project can be used to switch config contexts, but loads its client
in the Complete() method which does API negotiation. Since a user may
not be logged in or the server they are talking to may be down, changing
projects then doesn't work.

Use a lazy client loader just for project until we can sort out lazy api
negotiation and/or something better on client.

@liggitt because I hate API negotiation almost as much as you.

ClientConfig *restclient.Config
Client func() (*client.Client, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClientFn

@liggitt
Copy link
Contributor

liggitt commented May 6, 2016

name nit, LGTM otherwise

oc project can be used to switch config contexts, but loads its client
in the Complete() method which does API negotiation. Since a user may
not be logged in or the server they are talking to may be down, changing
projects then doesn't work.

Use a lazy client loader just for project until we can sort out lazy api
negotiation and/or something better on client.
@smarterclayton
Copy link
Contributor Author

renamed [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented May 8, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5846/) (Image: devenv-rhel7_4135)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 205f9d7

@openshift-bot openshift-bot merged commit c024891 into openshift:master May 8, 2016
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

Successfully merging this pull request may close these issues.

None yet

3 participants