{"action":"closed","number":148,"pull_request":{"url":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/148","id":196645889,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NjQ1ODg5","html_url":"https://github.com/bazelbuild/rules_k8s/pull/148","diff_url":"https://github.com/bazelbuild/rules_k8s/pull/148.diff","patch_url":"https://github.com/bazelbuild/rules_k8s/pull/148.patch","issue_url":"https://api.github.com/repos/bazelbuild/rules_k8s/issues/148","number":148,"state":"closed","locked":false,"title":"Support kubectl --user","user":{"login":"mariusgrigoriu","id":415231,"node_id":"MDQ6VXNlcjQxNTIzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/415231?v=4","gravatar_id":"","url":"https://api.github.com/users/mariusgrigoriu","html_url":"https://github.com/mariusgrigoriu","followers_url":"https://api.github.com/users/mariusgrigoriu/followers","following_url":"https://api.github.com/users/mariusgrigoriu/following{/other_user}","gists_url":"https://api.github.com/users/mariusgrigoriu/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusgrigoriu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusgrigoriu/subscriptions","organizations_url":"https://api.github.com/users/mariusgrigoriu/orgs","repos_url":"https://api.github.com/users/mariusgrigoriu/repos","events_url":"https://api.github.com/users/mariusgrigoriu/events{/privacy}","received_events_url":"https://api.github.com/users/mariusgrigoriu/received_events","type":"User","site_admin":false},"body":"#### Why this PR is needed\r\n\r\nIf a user running rules_k8s is setting `cluster` to a value that is not the same as the cluster in their current context, then there is a chance that they also need to set a different user.\r\n\r\n#### Approached used\r\n\r\nI naively searched for the `cluster` attribute and added matching code for a `user` attribute. ","created_at":"2018-06-22T06:10:57Z","updated_at":"2018-07-18T15:41:36Z","closed_at":"2018-07-18T15:41:36Z","merged_at":"2018-07-18T15:41:36Z","merge_commit_sha":"5b351a6e63fc0a7f498715816ad1cd8a15b09ffb","assignee":{"login":"fejta","id":940341,"node_id":"MDQ6VXNlcjk0MDM0MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/940341?v=4","gravatar_id":"","url":"https://api.github.com/users/fejta","html_url":"https://github.com/fejta","followers_url":"https://api.github.com/users/fejta/followers","following_url":"https://api.github.com/users/fejta/following{/other_user}","gists_url":"https://api.github.com/users/fejta/gists{/gist_id}","starred_url":"https://api.github.com/users/fejta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejta/subscriptions","organizations_url":"https://api.github.com/users/fejta/orgs","repos_url":"https://api.github.com/users/fejta/repos","events_url":"https://api.github.com/users/fejta/events{/privacy}","received_events_url":"https://api.github.com/users/fejta/received_events","type":"User","site_admin":false},"assignees":[{"login":"fejta","id":940341,"node_id":"MDQ6VXNlcjk0MDM0MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/940341?v=4","gravatar_id":"","url":"https://api.github.com/users/fejta","html_url":"https://github.com/fejta","followers_url":"https://api.github.com/users/fejta/followers","following_url":"https://api.github.com/users/fejta/following{/other_user}","gists_url":"https://api.github.com/users/fejta/gists{/gist_id}","starred_url":"https://api.github.com/users/fejta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejta/subscriptions","organizations_url":"https://api.github.com/users/fejta/orgs","repos_url":"https://api.github.com/users/fejta/repos","events_url":"https://api.github.com/users/fejta/events{/privacy}","received_events_url":"https://api.github.com/users/fejta/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mattmoor","id":2442466,"node_id":"MDQ6VXNlcjI0NDI0NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/2442466?v=4","gravatar_id":"","url":"https://api.github.com/users/mattmoor","html_url":"https://github.com/mattmoor","followers_url":"https://api.github.com/users/mattmoor/followers","following_url":"https://api.github.com/users/mattmoor/following{/other_user}","gists_url":"https://api.github.com/users/mattmoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmoor/subscriptions","organizations_url":"https://api.github.com/users/mattmoor/orgs","repos_url":"https://api.github.com/users/mattmoor/repos","events_url":"https://api.github.com/users/mattmoor/events{/privacy}","received_events_url":"https://api.github.com/users/mattmoor/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":976343198,"node_id":"MDU6TGFiZWw5NzYzNDMxOTg=","url":"https://api.github.com/repos/bazelbuild/rules_k8s/labels/size/M","name":"size/M","color":"2d43b5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/148/commits","review_comments_url":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/148/comments","review_comment_url":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bazelbuild/rules_k8s/issues/148/comments","statuses_url":"https://api.github.com/repos/bazelbuild/rules_k8s/statuses/405d9389c0b3c69515f987bb973c7ab4e1868036","head":{"label":"mariusgrigoriu:user","ref":"user","sha":"405d9389c0b3c69515f987bb973c7ab4e1868036","user":{"login":"mariusgrigoriu","id":415231,"node_id":"MDQ6VXNlcjQxNTIzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/415231?v=4","gravatar_id":"","url":"https://api.github.com/users/mariusgrigoriu","html_url":"https://github.com/mariusgrigoriu","followers_url":"https://api.github.com/users/mariusgrigoriu/followers","following_url":"https://api.github.com/users/mariusgrigoriu/following{/other_user}","gists_url":"https://api.github.com/users/mariusgrigoriu/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusgrigoriu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusgrigoriu/subscriptions","organizations_url":"https://api.github.com/users/mariusgrigoriu/orgs","repos_url":"https://api.github.com/users/mariusgrigoriu/repos","events_url":"https://api.github.com/users/mariusgrigoriu/events{/privacy}","received_events_url":"https://api.github.com/users/mariusgrigoriu/received_events","type":"User","site_admin":false},"repo":{"id":138259581,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyNTk1ODE=","name":"rules_k8s","full_name":"mariusgrigoriu/rules_k8s","owner":{"login":"mariusgrigoriu","id":415231,"node_id":"MDQ6VXNlcjQxNTIzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/415231?v=4","gravatar_id":"","url":"https://api.github.com/users/mariusgrigoriu","html_url":"https://github.com/mariusgrigoriu","followers_url":"https://api.github.com/users/mariusgrigoriu/followers","following_url":"https://api.github.com/users/mariusgrigoriu/following{/other_user}","gists_url":"https://api.github.com/users/mariusgrigoriu/gists{/gist_id}","starred_url":"https://api.github.com/users/mariusgrigoriu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariusgrigoriu/subscriptions","organizations_url":"https://api.github.com/users/mariusgrigoriu/orgs","repos_url":"https://api.github.com/users/mariusgrigoriu/repos","events_url":"https://api.github.com/users/mariusgrigoriu/events{/privacy}","received_events_url":"https://api.github.com/users/mariusgrigoriu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mariusgrigoriu/rules_k8s","description":null,"fork":true,"url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s","forks_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/forks","keys_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/teams","hooks_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/hooks","issue_events_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/issues/events{/number}","events_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/events","assignees_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/assignees{/user}","branches_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/branches{/branch}","tags_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/tags","blobs_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/git/refs{/sha}","trees_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/statuses/{sha}","languages_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/languages","stargazers_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/stargazers","contributors_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/contributors","subscribers_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/subscribers","subscription_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/subscription","commits_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/commits{/sha}","git_commits_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/git/commits{/sha}","comments_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/comments{/number}","issue_comment_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/issues/comments{/number}","contents_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/contents/{+path}","compare_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/merges","archive_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/downloads","issues_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/issues{/number}","pulls_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/pulls{/number}","milestones_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/milestones{/number}","notifications_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/labels{/name}","releases_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/releases{/id}","deployments_url":"https://api.github.com/repos/mariusgrigoriu/rules_k8s/deployments","created_at":"2018-06-22T05:43:48Z","updated_at":"2018-06-22T05:43:50Z","pushed_at":"2018-07-18T14:33:32Z","git_url":"git://github.com/mariusgrigoriu/rules_k8s.git","ssh_url":"git@github.com:mariusgrigoriu/rules_k8s.git","clone_url":"https://github.com/mariusgrigoriu/rules_k8s.git","svn_url":"https://github.com/mariusgrigoriu/rules_k8s","homepage":null,"size":198,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bazelbuild:master","ref":"master","sha":"ae6b346241a362a4c622620982850edaca07306f","user":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"repo":{"id":101780554,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE3ODA1NTQ=","name":"rules_k8s","full_name":"bazelbuild/rules_k8s","owner":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bazelbuild/rules_k8s","description":null,"fork":false,"url":"https://api.github.com/repos/bazelbuild/rules_k8s","forks_url":"https://api.github.com/repos/bazelbuild/rules_k8s/forks","keys_url":"https://api.github.com/repos/bazelbuild/rules_k8s/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazelbuild/rules_k8s/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazelbuild/rules_k8s/teams","hooks_url":"https://api.github.com/repos/bazelbuild/rules_k8s/hooks","issue_events_url":"https://api.github.com/repos/bazelbuild/rules_k8s/issues/events{/number}","events_url":"https://api.github.com/repos/bazelbuild/rules_k8s/events","assignees_url":"https://api.github.com/repos/bazelbuild/rules_k8s/assignees{/user}","branches_url":"https://api.github.com/repos/bazelbuild/rules_k8s/branches{/branch}","tags_url":"https://api.github.com/repos/bazelbuild/rules_k8s/tags","blobs_url":"https://api.github.com/repos/bazelbuild/rules_k8s/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazelbuild/rules_k8s/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazelbuild/rules_k8s/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazelbuild/rules_k8s/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazelbuild/rules_k8s/statuses/{sha}","languages_url":"https://api.github.com/repos/bazelbuild/rules_k8s/languages","stargazers_url":"https://api.github.com/repos/bazelbuild/rules_k8s/stargazers","contributors_url":"https://api.github.com/repos/bazelbuild/rules_k8s/contributors","subscribers_url":"https://api.github.com/repos/bazelbuild/rules_k8s/subscribers","subscription_url":"https://api.github.com/repos/bazelbuild/rules_k8s/subscription","commits_url":"https://api.github.com/repos/bazelbuild/rules_k8s/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazelbuild/rules_k8s/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazelbuild/rules_k8s/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazelbuild/rules_k8s/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazelbuild/rules_k8s/contents/{+path}","compare_url":"https://api.github.com/repos/bazelbuild/rules_k8s/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazelbuild/rules_k8s/merges","archive_url":"https://api.github.com/repos/bazelbuild/rules_k8s/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazelbuild/rules_k8s/downloads","issues_url":"https://api.github.com/repos/bazelbuild/rules_k8s/issues{/number}","pulls_url":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls{/number}","milestones_url":"https://api.github.com/repos/bazelbuild/rules_k8s/milestones{/number}","notifications_url":"https://api.github.com/repos/bazelbuild/rules_k8s/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazelbuild/rules_k8s/labels{/name}","releases_url":"https://api.github.com/repos/bazelbuild/rules_k8s/releases{/id}","deployments_url":"https://api.github.com/repos/bazelbuild/rules_k8s/deployments","created_at":"2017-08-29T16:05:44Z","updated_at":"2018-07-18T14:33:13Z","pushed_at":"2018-07-18T15:41:36Z","git_url":"git://github.com/bazelbuild/rules_k8s.git","ssh_url":"git@github.com:bazelbuild/rules_k8s.git","clone_url":"https://github.com/bazelbuild/rules_k8s.git","svn_url":"https://github.com/bazelbuild/rules_k8s","homepage":null,"size":198,"stargazers_count":70,"watchers_count":70,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":42,"open_issues":41,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/148"},"html":{"href":"https://github.com/bazelbuild/rules_k8s/pull/148"},"issue":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/issues/148"},"comments":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/bazelbuild/rules_k8s/statuses/405d9389c0b3c69515f987bb973c7ab4e1868036"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"nlopezgi","id":4062751,"node_id":"MDQ6VXNlcjQwNjI3NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4062751?v=4","gravatar_id":"","url":"https://api.github.com/users/nlopezgi","html_url":"https://github.com/nlopezgi","followers_url":"https://api.github.com/users/nlopezgi/followers","following_url":"https://api.github.com/users/nlopezgi/following{/other_user}","gists_url":"https://api.github.com/users/nlopezgi/gists{/gist_id}","starred_url":"https://api.github.com/users/nlopezgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlopezgi/subscriptions","organizations_url":"https://api.github.com/users/nlopezgi/orgs","repos_url":"https://api.github.com/users/nlopezgi/repos","events_url":"https://api.github.com/users/nlopezgi/events{/privacy}","received_events_url":"https://api.github.com/users/nlopezgi/received_events","type":"User","site_admin":false},"comments":7,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":25,"deletions":10,"changed_files":7}}
{"actor":{"display_login":"nlopezgi"}}