{"action":"created","issue":{"url":"https://api.github.com/repos/minishift/minishift/issues/1917","repository_url":"https://api.github.com/repos/minishift/minishift","labels_url":"https://api.github.com/repos/minishift/minishift/issues/1917/labels{/name}","comments_url":"https://api.github.com/repos/minishift/minishift/issues/1917/comments","events_url":"https://api.github.com/repos/minishift/minishift/issues/1917/events","html_url":"https://github.com/minishift/minishift/issues/1917","id":289239555,"number":1917,"title":"Meaningful/Custom Context Names for oc","user":{"login":"phonique","id":419944,"avatar_url":"https://avatars0.githubusercontent.com/u/419944?v=4","gravatar_id":"","url":"https://api.github.com/users/phonique","html_url":"https://github.com/phonique","followers_url":"https://api.github.com/users/phonique/followers","following_url":"https://api.github.com/users/phonique/following{/other_user}","gists_url":"https://api.github.com/users/phonique/gists{/gist_id}","starred_url":"https://api.github.com/users/phonique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonique/subscriptions","organizations_url":"https://api.github.com/users/phonique/orgs","repos_url":"https://api.github.com/users/phonique/repos","events_url":"https://api.github.com/users/phonique/events{/privacy}","received_events_url":"https://api.github.com/users/phonique/received_events","type":"User","site_admin":false},"labels":[{"id":403874612,"url":"https://api.github.com/repos/minishift/minishift/labels/kind/question","name":"kind/question","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":5,"created_at":"2018-01-17T11:53:45Z","updated_at":"2018-04-15T15:01:45Z","closed_at":null,"author_association":"NONE","body":"### General information\r\nI'm attempting to set up a unified environment with minishift and corresponding documentation around it. Documentation would be simplified, if it'd be possible to rely on static naming.\r\nAfter an initial minishift start, I attempt to set up a named context, users, etc. via oc, but after performing oc login (even with explicit credentials, like `oc login -u=system -p=admin -s=192.168.64.2:8443` or `oc login --context=local -u=developer -p=developer`) a new context, cluster, etc. is created, which does not correspond to the desired naming). In a way this is related to: https://github.com/minishift/minishift/issues/349#issuecomment-323374801\r\n~I don't know, whether this is connected to the fact that oc seems to request a token and create a new user-entry in \\~/.kube/config (and prefer this entry), but as I could not find a way to request a token programmatically, I did not pursue this further.~ Placing the token requested by oc for user developer/192-168-64-2:8443 in user developer does not change the behavior.\r\n\r\n  * Minishift version: 1.11.0+4459917\r\n  * OS: macOS\r\n  * Hypervisor: xhyve\r\n\r\n\r\n### Steps to reproduce\r\nVirgin system\r\n  1. minishift start\r\n  2. oc config set-cluster local --server=https://192.168.64.2:8443\r\n  3. oc config set-credentials developer --password=developer\r\n  4. oc config set-context local --cluster=local --user=developer\r\n  5. oc config use-context local\r\n  6. oc login --insecure-skip-tls-verify\r\n\r\n### Expected\r\n\r\noc config view\r\n\r\n```\r\napiVersion: v1\r\nclusters:\r\n- cluster:\r\n    server: https://192.168.64.2:8443\r\n  name: local\r\ncontexts: []\r\ncurrent-context: \"local\"\r\nkind: Config\r\npreferences: {}\r\nusers:\r\n- name: developer\r\n  user:\r\n    password: developer\r\n- name: system\r\n  user:\r\n    password: admin\r\n```\r\n\r\n### Actual\r\noc login --insecure-skip-tls-verify\r\n```\r\nAuthentication required for https://192.168.64.2:8443 (openshift)\r\nUsername: developer\r\nPassword:\r\nLogin successful.\r\n[...]\r\n```\r\n\r\noc config view\r\n```\r\napiVersion: v1\r\nclusters:\r\n- cluster:\r\n    insecure-skip-tls-verify: true\r\n    server: https://192.168.64.2:8443\r\n  name: 192-168-64-2:8443\r\n- cluster:\r\n    server: https://192.168.64.2:8443\r\n  name: local\r\ncontexts:\r\n- context:\r\n    cluster: 192-168-64-2:8443\r\n    namespace: myproject\r\n    user: developer/192-168-64-2:8443\r\n  name: myproject/192-168-64-2:8443/developer\r\ncurrent-context: myproject/192-168-64-2:8443/developer\r\nkind: Config\r\npreferences: {}\r\nusers:\r\n- name: developer\r\n  user:\r\n    password: developer\r\n- name: developer/192-168-64-2:8443\r\n  user:\r\n    token: GhsbZXSuzciOIKqUO9P0P7jotlfArBzFQJ4QuFpFpaA\r\n- name: system\r\n  user:\r\n    password: admin\r\n```\r\n\r\n### Sidenote\r\n\r\n`oc login https://localhost:8443 --username=developer --password=developer` results in\r\n>error: dial tcp [::1]:8443: getsockopt: connection refused - verify you have provided the correct host and port and that the server is currently running.\r\n\r\nbut I can live with that."},"comment":{"url":"https://api.github.com/repos/minishift/minishift/issues/comments/381413062","html_url":"https://github.com/minishift/minishift/issues/1917#issuecomment-381413062","issue_url":"https://api.github.com/repos/minishift/minishift/issues/1917","id":381413062,"user":{"login":"stale[bot]","id":26384082,"avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-04-15T15:01:45Z","updated_at":"2018-04-15T15:01:45Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}