{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32676","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32676/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32676/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32676/events","html_url":"https://github.com/kubernetes/kubernetes/issues/32676","id":176929976,"number":32676,"title":"kubectl kubeconfig flag blows up completions ","user":{"login":"flah00","id":477982,"avatar_url":"https://avatars.githubusercontent.com/u/477982?v=3","gravatar_id":"","url":"https://api.github.com/users/flah00","html_url":"https://github.com/flah00","followers_url":"https://api.github.com/users/flah00/followers","following_url":"https://api.github.com/users/flah00/following{/other_user}","gists_url":"https://api.github.com/users/flah00/gists{/gist_id}","starred_url":"https://api.github.com/users/flah00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flah00/subscriptions","organizations_url":"https://api.github.com/users/flah00/orgs","repos_url":"https://api.github.com/users/flah00/repos","events_url":"https://api.github.com/users/flah00/events{/privacy}","received_events_url":"https://api.github.com/users/flah00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/0%20-%20Triage","name":"0 - Triage","color":"AAAAAA"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/friction","name":"kind/friction","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"AdoHe","id":1555564,"avatar_url":"https://avatars.githubusercontent.com/u/1555564?v=3","gravatar_id":"","url":"https://api.github.com/users/AdoHe","html_url":"https://github.com/AdoHe","followers_url":"https://api.github.com/users/AdoHe/followers","following_url":"https://api.github.com/users/AdoHe/following{/other_user}","gists_url":"https://api.github.com/users/AdoHe/gists{/gist_id}","starred_url":"https://api.github.com/users/AdoHe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdoHe/subscriptions","organizations_url":"https://api.github.com/users/AdoHe/orgs","repos_url":"https://api.github.com/users/AdoHe/repos","events_url":"https://api.github.com/users/AdoHe/events{/privacy}","received_events_url":"https://api.github.com/users/AdoHe/received_events","type":"User","site_admin":false},"assignees":[{"login":"AdoHe","id":1555564,"avatar_url":"https://avatars.githubusercontent.com/u/1555564?v=3","gravatar_id":"","url":"https://api.github.com/users/AdoHe","html_url":"https://github.com/AdoHe","followers_url":"https://api.github.com/users/AdoHe/followers","following_url":"https://api.github.com/users/AdoHe/following{/other_user}","gists_url":"https://api.github.com/users/AdoHe/gists{/gist_id}","starred_url":"https://api.github.com/users/AdoHe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdoHe/subscriptions","organizations_url":"https://api.github.com/users/AdoHe/orgs","repos_url":"https://api.github.com/users/AdoHe/repos","events_url":"https://api.github.com/users/AdoHe/events{/privacy}","received_events_url":"https://api.github.com/users/AdoHe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-14T14:56:21Z","updated_at":"2016-10-18T21:27:30Z","closed_at":null,"body":"**Kubernetes version** (use `kubectl version`): `Client Version: version.Info{Major:\"1\", Minor:\"3\", GitVersion:\"v1.3.6+ae4550c\", GitCommit:\"ae4550cc9c89a593bcda6678df201db1b208133b\", GitTreeState:\"not a git tree\", BuildDate:\"2016-08-30T15:45:50Z\", GoVersion:\"go1.7\", Compiler:\"gc\", Platform:\"darwin/amd64\"}`\r\n\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: Mac OS 10.10\r\n- **OS** (e.g. from /etc/os-release): N/A\r\n- **Kernel** (e.g. `uname -a`): `Darwin pcpcpc.local 14.5.0 Darwin Kernel Version 14.5.0: Mon Jan 11 18:48:35 PST 2016; root:xnu-2782.50.2~1/RELEASE_X86_64 x86_64`\r\n- **Install tools**: brew\r\n- **Others**:\r\n\r\n\r\n**What happened**:\r\nUsing the `kubeconfig` flag seems to break completion. If I use completions, without the flag, I am able to view commands and flags, when I double tab. Once the option is on the command line, completion deletes the entire command string, if I tab.\r\n\r\n**What you expected to happen**:\r\nCommands, for kubectl should be displayed. If I do not use the `kubeconfig` flag, completions work as expected.\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\nUnderscore indicates a single tab\r\n\r\n```\r\n$ kubectl completion bash > /tmp/kube\r\n$ source /tmp/kube\r\n$ kubectl --k_\r\n$ kubectl --kubeconfig=\r\n$ kubectl --kubeconfig=_\r\n$ kubectl --kubeconfig=--kubeconfig=__\r\naddons/              credentials/         k8.pem               stack-template.json\r\ncluster.yaml         k8.json              kubeconfig           userdata/\r\n$ kubectl --kubeconfig=--kubeconfig=kubeconfig _-bash: --kubeconfig=: attempted assignment to non-variable (error token is \"=\")\r\n$ \r\n```\r\n\r\n```\r\n$ kubectl completion bash > /tmp/kube\r\n$ source /tmp/kube\r\n$ kubectl --k_\r\n$ kubectl --kubeconfig=kubeconfig _-bash: --kubeconfig=: attempted assignment to non-variable (error token is \"=\")\r\n$\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/254644541","html_url":"https://github.com/kubernetes/kubernetes/issues/32676#issuecomment-254644541","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/32676","id":254644541,"user":{"login":"pwittrock","id":7882754,"avatar_url":"https://avatars.githubusercontent.com/u/7882754?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T21:27:30Z","updated_at":"2016-10-18T21:27:30Z","body":"@AdoHe Can you own this or find it an owner?"}}
{"actor":{"display_login":"pwittrock"}}