{"action":"created","issue":{"url":"https://api.github.com/repos/minishift/minishift/issues/1660","repository_url":"https://api.github.com/repos/minishift/minishift","labels_url":"https://api.github.com/repos/minishift/minishift/issues/1660/labels{/name}","comments_url":"https://api.github.com/repos/minishift/minishift/issues/1660/comments","events_url":"https://api.github.com/repos/minishift/minishift/issues/1660/events","html_url":"https://github.com/minishift/minishift/issues/1660","id":271217982,"number":1660,"title":"minishift profile set downloads the oc client","user":{"login":"jorgemoralespou","id":78350,"avatar_url":"https://avatars0.githubusercontent.com/u/78350?v=4","gravatar_id":"","url":"https://api.github.com/users/jorgemoralespou","html_url":"https://github.com/jorgemoralespou","followers_url":"https://api.github.com/users/jorgemoralespou/followers","following_url":"https://api.github.com/users/jorgemoralespou/following{/other_user}","gists_url":"https://api.github.com/users/jorgemoralespou/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgemoralespou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgemoralespou/subscriptions","organizations_url":"https://api.github.com/users/jorgemoralespou/orgs","repos_url":"https://api.github.com/users/jorgemoralespou/repos","events_url":"https://api.github.com/users/jorgemoralespou/events{/privacy}","received_events_url":"https://api.github.com/users/jorgemoralespou/received_events","type":"User","site_admin":false},"labels":[{"id":403874607,"url":"https://api.github.com/repos/minishift/minishift/labels/kind/bug","name":"kind/bug","color":"84b6eb","default":false},{"id":503456382,"url":"https://api.github.com/repos/minishift/minishift/labels/priority/major","name":"priority/major","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-11-04T19:33:27Z","updated_at":"2017-11-06T11:48:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have created a profile with openshift-version=3.7.0-rc.1  (profile1) then I create a new profile (profile 2), then I switch back to my profile 1, and I get:\r\n\r\n```\r\nminishift profile set istio\r\n-- Downloading OpenShift binary 'oc' version 'v3.6.0'\r\n 33.74 MiB / 33.74 MiB [==============================================================================================] 100.00% 0s-- Downloading OpenShift v3.6.0 checksums ... OK\r\noc cli context could not changed for 'istio'. Make sure the profile is in running state or restart if the problem persists.\r\nProfile 'istio' set as active profile\r\n```\r\n\r\nAnd now I have in that profiles cache:\r\n```\r\nls .minishift/profiles/istio/cache/oc/\r\nv3.6.0/      v3.7.0-rc.0/\r\n```\r\n\r\nIt should use the oc for that profile, or it should cache the client, etc in a global dir. Profiles feature is getting not too usable, if every command pulls down things again."},"comment":{"url":"https://api.github.com/repos/minishift/minishift/issues/comments/342125958","html_url":"https://github.com/minishift/minishift/issues/1660#issuecomment-342125958","issue_url":"https://api.github.com/repos/minishift/minishift/issues/1660","id":342125958,"user":{"login":"gbraad","id":1894,"avatar_url":"https://avatars0.githubusercontent.com/u/1894?v=4","gravatar_id":"","url":"https://api.github.com/users/gbraad","html_url":"https://github.com/gbraad","followers_url":"https://api.github.com/users/gbraad/followers","following_url":"https://api.github.com/users/gbraad/following{/other_user}","gists_url":"https://api.github.com/users/gbraad/gists{/gist_id}","starred_url":"https://api.github.com/users/gbraad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbraad/subscriptions","organizations_url":"https://api.github.com/users/gbraad/orgs","repos_url":"https://api.github.com/users/gbraad/repos","events_url":"https://api.github.com/users/gbraad/events{/privacy}","received_events_url":"https://api.github.com/users/gbraad/received_events","type":"User","site_admin":false},"created_at":"2017-11-06T11:48:56Z","updated_at":"2017-11-06T11:48:56Z","author_association":"OWNER","body":"So, therefore I rather focus on the current code base. The problems partially stems from the fact that we do not persist the openshift-version after start. But also, we have the instanceconfig for this purpose. Right.\r\n\r\nEven if we have a shared cache, the problem is in the invocation. If this is corrected, this would not happen. The download is unnecessary and very wrong, as this is also the command being used for the context switch."}}
{"actor":{"display_login":"gbraad"}}