{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38744","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38744/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38744/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38744/events","html_url":"https://github.com/kubernetes/kubernetes/issues/38744","id":195436075,"number":38744,"title":"kubectl inside a pod no longer respects the --context parameter","user":{"login":"chrisleck","id":13987499,"avatar_url":"https://avatars.githubusercontent.com/u/13987499?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisleck","html_url":"https://github.com/chrisleck","followers_url":"https://api.github.com/users/chrisleck/followers","following_url":"https://api.github.com/users/chrisleck/following{/other_user}","gists_url":"https://api.github.com/users/chrisleck/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisleck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisleck/subscriptions","organizations_url":"https://api.github.com/users/chrisleck/orgs","repos_url":"https://api.github.com/users/chrisleck/repos","events_url":"https://api.github.com/users/chrisleck/events{/privacy}","received_events_url":"https://api.github.com/users/chrisleck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T04:12:03Z","updated_at":"2016-12-14T12:48:00Z","closed_at":null,"body":"BUG REPORT\r\n\r\n**Kubernetes version** (use `kubectl version`): 1.5.0\r\n\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: AWS\r\n- **OS** (e.g. from /etc/os-release): CoreOS Beta channel\r\n\r\n**What happened**: We have automation running inside Jenkins in a Kubernetes pod.  With the rollout of 1.5.0, calling `kubectl --context=something get pods` now defaults to the InCluster configuration rather than the desired \"something\" context and we see the following error: `error: the namespace from the provided object \"staging\" does not match the namespace \"jenkins\". You must pass '--namespace=staging' to perform this operation`\r\n\r\n**What you expected to happen**: The same as 1.4.6 behavior; kubectl respects the `--context` parameter.\r\n\r\n**How to reproduce it** (as minimally and precisely as possible): See above.\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/267025416","html_url":"https://github.com/kubernetes/kubernetes/issues/38744#issuecomment-267025416","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38744","id":267025416,"user":{"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},"created_at":"2016-12-14T12:48:00Z","updated_at":"2016-12-14T12:48:00Z","body":"@kubernetes/kubectl "}}
{"actor":{"display_login":"AdoHe"}}