{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10616","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10616/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10616/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10616/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/10616","id":92363770,"number":10616,"title":"Misleading behavior when ~/.kube/config uses a non-existing context","user":{"login":"mwielgus","id":11994812,"avatar_url":"https://avatars.githubusercontent.com/u/11994812?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielgus","html_url":"https://github.com/mwielgus","followers_url":"https://api.github.com/users/mwielgus/followers","following_url":"https://api.github.com/users/mwielgus/following{/other_user}","gists_url":"https://api.github.com/users/mwielgus/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielgus/subscriptions","organizations_url":"https://api.github.com/users/mwielgus/orgs","repos_url":"https://api.github.com/users/mwielgus/repos","events_url":"https://api.github.com/users/mwielgus/events{/privacy}","received_events_url":"https://api.github.com/users/mwielgus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-01T11:58:49Z","updated_at":"2015-07-01T11:58:49Z","closed_at":null,"body":"There are 2 problems here:\r\n\r\n1. `kubectl config use-context foobar`. Should throw an error or at least print a warning if foobar is not defined.\r\n2. `kubectl get pods` with non-existing current-context . There is no server to talk to but the error is:\r\n```\r\nerror: couldn't read version from server: the server could not find the requested resource\r\n```"}}