{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/dashboard/issues/2849","repository_url":"https://api.github.com/repos/kubernetes/dashboard","labels_url":"https://api.github.com/repos/kubernetes/dashboard/issues/2849/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/dashboard/issues/2849/comments","events_url":"https://api.github.com/repos/kubernetes/dashboard/issues/2849/events","html_url":"https://github.com/kubernetes/dashboard/issues/2849","id":298871756,"node_id":"MDU6SXNzdWUyOTg4NzE3NTY=","number":2849,"title":"Signin with the kubeconfig created with gcloud container clusters get-credentials doesnt work","user":{"login":"BoasE","id":4619513,"node_id":"MDQ6VXNlcjQ2MTk1MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4619513?v=4","gravatar_id":"","url":"https://api.github.com/users/BoasE","html_url":"https://github.com/BoasE","followers_url":"https://api.github.com/users/BoasE/followers","following_url":"https://api.github.com/users/BoasE/following{/other_user}","gists_url":"https://api.github.com/users/BoasE/gists{/gist_id}","starred_url":"https://api.github.com/users/BoasE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoasE/subscriptions","organizations_url":"https://api.github.com/users/BoasE/orgs","repos_url":"https://api.github.com/users/BoasE/repos","events_url":"https://api.github.com/users/BoasE/events{/privacy}","received_events_url":"https://api.github.com/users/BoasE/received_events","type":"User","site_admin":false},"labels":[{"id":717605564,"node_id":"MDU6TGFiZWw3MTc2MDU1NjQ=","url":"https://api.github.com/repos/kubernetes/dashboard/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":583731145,"node_id":"MDU6TGFiZWw1ODM3MzExNDU=","url":"https://api.github.com/repos/kubernetes/dashboard/labels/help%20wanted","name":"help wanted","color":"006b75","default":true},{"id":338640112,"node_id":"MDU6TGFiZWwzMzg2NDAxMTI=","url":"https://api.github.com/repos/kubernetes/dashboard/labels/kind/feature","name":"kind/feature","color":"c7def8","default":false},{"id":778118388,"node_id":"MDU6TGFiZWw3NzgxMTgzODg=","url":"https://api.github.com/repos/kubernetes/dashboard/labels/lifecycle/frozen","name":"lifecycle/frozen","color":"d3e2f0","default":false},{"id":338101999,"node_id":"MDU6TGFiZWwzMzgxMDE5OTk=","url":"https://api.github.com/repos/kubernetes/dashboard/labels/priority/P2","name":"priority/P2","color":"ffcc00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-21T07:55:29Z","updated_at":"2018-09-05T05:51:14Z","closed_at":null,"author_association":"NONE","body":"##### Environment\r\nI use a cluster which was created by the google container engine and has a preinstalled dashboard.\r\nSince 1.8.x i need to prove a accesstoken or kubeconfig file via login maskl.\r\n\r\n```\r\nDashboard version: v1.8.0 Git Commit:054916b8fbadebd32dc16d32108fdd3c9ccbf400\r\nKubernetes version1.8.7-gke.1\r\n```\r\n\r\n##### Steps to reproduce\r\nI authenticated with ```gcloud container clusters get-credentials``` this creates a kubeconfig file with has this structure (I omitted the value)\r\n\r\n```\r\napiVersion: v1\r\nclusters:\r\n- cluster:\r\n    certificate-authority-data: ...\r\n    server: ...\r\n  name: ...\r\ncontexts:\r\n- context:\r\n    cluster: ...\r\n    user: ...\r\n  name: ...\r\ncurrent-context: ...\r\nkind: Config\r\npreferences: {}\r\nusers:\r\n- name: ...\r\n  user:\r\n    auth-provider:\r\n      config:\r\n        access-token: ...\r\n        cmd-args: config config-helper --format=json\r\n        cmd-path: ...\r\n        expiry: 2018-02-21T07:58:23Z\r\n        expiry-key: ...\r\n        token-key: ..\r\n      name: gcp\r\n\r\n```\r\n\r\n\r\n\r\n##### Observed result\r\nIn the auth I select the created config file. auth does fail with : Not enough data to create auth info structure.\r\n\r\n![image](https://user-images.githubusercontent.com/4619513/36468721-cffe7f7c-16e4-11e8-8c25-dea09dcd712f.png)\r\n\r\nWhen i choose the accesstoken opton and copy and paste the accestoken from the file it works\r\n\r\n##### Expected result\r\nselecting the file that was created from get-credentials should work\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/dashboard/issues/comments/418607446","html_url":"https://github.com/kubernetes/dashboard/issues/2849#issuecomment-418607446","issue_url":"https://api.github.com/repos/kubernetes/dashboard/issues/2849","id":418607446,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODYwNzQ0Ng==","user":{"login":"VampireDaniel","id":12490709,"node_id":"MDQ6VXNlcjEyNDkwNzA5","avatar_url":"https://avatars0.githubusercontent.com/u/12490709?v=4","gravatar_id":"","url":"https://api.github.com/users/VampireDaniel","html_url":"https://github.com/VampireDaniel","followers_url":"https://api.github.com/users/VampireDaniel/followers","following_url":"https://api.github.com/users/VampireDaniel/following{/other_user}","gists_url":"https://api.github.com/users/VampireDaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/VampireDaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VampireDaniel/subscriptions","organizations_url":"https://api.github.com/users/VampireDaniel/orgs","repos_url":"https://api.github.com/users/VampireDaniel/repos","events_url":"https://api.github.com/users/VampireDaniel/events{/privacy}","received_events_url":"https://api.github.com/users/VampireDaniel/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T05:51:14Z","updated_at":"2018-09-05T05:51:14Z","author_association":"NONE","body":"I dont see any correct answer form internel. here is my research.\r\n\r\nFirst, you need to have a account(ideally you could use the build-in account, `kubectl get clusterroles` to get all build-in account, very recommend to use edit rather than admin)\r\n\r\nThen, type this command to get the token which would be used in kubeconfig\r\n`kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep edit | awk '{print $1}')`\r\n\r\nFinally, the structure for the kubeconfig should be like this\r\n\r\n```current-context: [account-name]\r\ncontexts:\r\n- context:\r\n    user: [account-name]\r\n  name: [account-name]\r\nusers:\r\n- name: [account-name]\r\n  user:\r\n    token: [token value which get at step2]```\r\n\r\nthose works for me and here is my dashboard version`kubernetes-dashboard-amd64:v1.10.0`\r\n\r\n\r\n"}}
{"actor":{"display_login":"VampireDaniel"}}