{"action":"created","comment":{"url":"https://api.github.com/repos/abonas/kubeclient/pulls/comments/33554068","id":33554068,"diff_hunk":"@@ -67,13 +69,26 @@ def all_entities\n     private\n \n     def validate_auth_options(opts)\n+      bearer_token_keys = [:bearer_token, :bearer_token_file]\n+      exclusive_keys = bearer_token_keys << :user","path":"lib/kubeclient.rb","position":39,"original_position":39,"commit_id":"2dc4cbb6c852ae914b57eede2d2e21f3ed12c20e","original_commit_id":"2dc4cbb6c852ae914b57eede2d2e21f3ed12c20e","user":{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false},"body":"Would this be equal to:\r\n\r\n    exclusive_keys = [:bearer_token, :bearer_token_file, :user]\r\n\r\nAny reason to define `bearer_token_keys`?","created_at":"2015-06-30T09:14:21Z","updated_at":"2015-06-30T09:14:21Z","html_url":"https://github.com/abonas/kubeclient/pull/98#discussion_r33554068","pull_request_url":"https://api.github.com/repos/abonas/kubeclient/pulls/98","_links":{"self":{"href":"https://api.github.com/repos/abonas/kubeclient/pulls/comments/33554068"},"html":{"href":"https://github.com/abonas/kubeclient/pull/98#discussion_r33554068"},"pull_request":{"href":"https://api.github.com/repos/abonas/kubeclient/pulls/98"}}},"pull_request":{"url":"https://api.github.com/repos/abonas/kubeclient/pulls/98","id":38089734,"html_url":"https://github.com/abonas/kubeclient/pull/98","diff_url":"https://github.com/abonas/kubeclient/pull/98.diff","patch_url":"https://github.com/abonas/kubeclient/pull/98.patch","issue_url":"https://api.github.com/repos/abonas/kubeclient/issues/98","number":98,"state":"open","locked":false,"title":"Allow bearer token file for auth","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-19T09:15:21Z","updated_at":"2015-06-30T09:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2140025ef1aedb98fdb43fd192209b673c23b91","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/abonas/kubeclient/pulls/98/commits","review_comments_url":"https://api.github.com/repos/abonas/kubeclient/pulls/98/comments","review_comment_url":"https://api.github.com/repos/abonas/kubeclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abonas/kubeclient/issues/98/comments","statuses_url":"https://api.github.com/repos/abonas/kubeclient/statuses/2dc4cbb6c852ae914b57eede2d2e21f3ed12c20e","head":{"label":"jimmidyson:service-account-token","ref":"service-account-token","sha":"2dc4cbb6c852ae914b57eede2d2e21f3ed12c20e","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"repo":{"id":35425798,"name":"kubeclient","full_name":"jimmidyson/kubeclient","owner":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimmidyson/kubeclient","description":"A Ruby client for Kubernetes REST api","fork":true,"url":"https://api.github.com/repos/jimmidyson/kubeclient","forks_url":"https://api.github.com/repos/jimmidyson/kubeclient/forks","keys_url":"https://api.github.com/repos/jimmidyson/kubeclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimmidyson/kubeclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimmidyson/kubeclient/teams","hooks_url":"https://api.github.com/repos/jimmidyson/kubeclient/hooks","issue_events_url":"https://api.github.com/repos/jimmidyson/kubeclient/issues/events{/number}","events_url":"https://api.github.com/repos/jimmidyson/kubeclient/events","assignees_url":"https://api.github.com/repos/jimmidyson/kubeclient/assignees{/user}","branches_url":"https://api.github.com/repos/jimmidyson/kubeclient/branches{/branch}","tags_url":"https://api.github.com/repos/jimmidyson/kubeclient/tags","blobs_url":"https://api.github.com/repos/jimmidyson/kubeclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimmidyson/kubeclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimmidyson/kubeclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimmidyson/kubeclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimmidyson/kubeclient/statuses/{sha}","languages_url":"https://api.github.com/repos/jimmidyson/kubeclient/languages","stargazers_url":"https://api.github.com/repos/jimmidyson/kubeclient/stargazers","contributors_url":"https://api.github.com/repos/jimmidyson/kubeclient/contributors","subscribers_url":"https://api.github.com/repos/jimmidyson/kubeclient/subscribers","subscription_url":"https://api.github.com/repos/jimmidyson/kubeclient/subscription","commits_url":"https://api.github.com/repos/jimmidyson/kubeclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimmidyson/kubeclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimmidyson/kubeclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimmidyson/kubeclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimmidyson/kubeclient/contents/{+path}","compare_url":"https://api.github.com/repos/jimmidyson/kubeclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimmidyson/kubeclient/merges","archive_url":"https://api.github.com/repos/jimmidyson/kubeclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimmidyson/kubeclient/downloads","issues_url":"https://api.github.com/repos/jimmidyson/kubeclient/issues{/number}","pulls_url":"https://api.github.com/repos/jimmidyson/kubeclient/pulls{/number}","milestones_url":"https://api.github.com/repos/jimmidyson/kubeclient/milestones{/number}","notifications_url":"https://api.github.com/repos/jimmidyson/kubeclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimmidyson/kubeclient/labels{/name}","releases_url":"https://api.github.com/repos/jimmidyson/kubeclient/releases{/id}","created_at":"2015-05-11T13:30:37Z","updated_at":"2015-05-11T13:30:37Z","pushed_at":"2015-06-30T07:30:38Z","git_url":"git://github.com/jimmidyson/kubeclient.git","ssh_url":"git@github.com:jimmidyson/kubeclient.git","clone_url":"https://github.com/jimmidyson/kubeclient.git","svn_url":"https://github.com/jimmidyson/kubeclient","homepage":"","size":337,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abonas:master","ref":"master","sha":"76c8e50208bcfe7e9557418cd4a1998fe08c1482","user":{"login":"abonas","id":6277245,"avatar_url":"https://avatars.githubusercontent.com/u/6277245?v=3","gravatar_id":"","url":"https://api.github.com/users/abonas","html_url":"https://github.com/abonas","followers_url":"https://api.github.com/users/abonas/followers","following_url":"https://api.github.com/users/abonas/following{/other_user}","gists_url":"https://api.github.com/users/abonas/gists{/gist_id}","starred_url":"https://api.github.com/users/abonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abonas/subscriptions","organizations_url":"https://api.github.com/users/abonas/orgs","repos_url":"https://api.github.com/users/abonas/repos","events_url":"https://api.github.com/users/abonas/events{/privacy}","received_events_url":"https://api.github.com/users/abonas/received_events","type":"User","site_admin":false},"repo":{"id":28627094,"name":"kubeclient","full_name":"abonas/kubeclient","owner":{"login":"abonas","id":6277245,"avatar_url":"https://avatars.githubusercontent.com/u/6277245?v=3","gravatar_id":"","url":"https://api.github.com/users/abonas","html_url":"https://github.com/abonas","followers_url":"https://api.github.com/users/abonas/followers","following_url":"https://api.github.com/users/abonas/following{/other_user}","gists_url":"https://api.github.com/users/abonas/gists{/gist_id}","starred_url":"https://api.github.com/users/abonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abonas/subscriptions","organizations_url":"https://api.github.com/users/abonas/orgs","repos_url":"https://api.github.com/users/abonas/repos","events_url":"https://api.github.com/users/abonas/events{/privacy}","received_events_url":"https://api.github.com/users/abonas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abonas/kubeclient","description":"A Ruby client for Kubernetes REST api","fork":false,"url":"https://api.github.com/repos/abonas/kubeclient","forks_url":"https://api.github.com/repos/abonas/kubeclient/forks","keys_url":"https://api.github.com/repos/abonas/kubeclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abonas/kubeclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abonas/kubeclient/teams","hooks_url":"https://api.github.com/repos/abonas/kubeclient/hooks","issue_events_url":"https://api.github.com/repos/abonas/kubeclient/issues/events{/number}","events_url":"https://api.github.com/repos/abonas/kubeclient/events","assignees_url":"https://api.github.com/repos/abonas/kubeclient/assignees{/user}","branches_url":"https://api.github.com/repos/abonas/kubeclient/branches{/branch}","tags_url":"https://api.github.com/repos/abonas/kubeclient/tags","blobs_url":"https://api.github.com/repos/abonas/kubeclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abonas/kubeclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abonas/kubeclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/abonas/kubeclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abonas/kubeclient/statuses/{sha}","languages_url":"https://api.github.com/repos/abonas/kubeclient/languages","stargazers_url":"https://api.github.com/repos/abonas/kubeclient/stargazers","contributors_url":"https://api.github.com/repos/abonas/kubeclient/contributors","subscribers_url":"https://api.github.com/repos/abonas/kubeclient/subscribers","subscription_url":"https://api.github.com/repos/abonas/kubeclient/subscription","commits_url":"https://api.github.com/repos/abonas/kubeclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/abonas/kubeclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/abonas/kubeclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/abonas/kubeclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/abonas/kubeclient/contents/{+path}","compare_url":"https://api.github.com/repos/abonas/kubeclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abonas/kubeclient/merges","archive_url":"https://api.github.com/repos/abonas/kubeclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abonas/kubeclient/downloads","issues_url":"https://api.github.com/repos/abonas/kubeclient/issues{/number}","pulls_url":"https://api.github.com/repos/abonas/kubeclient/pulls{/number}","milestones_url":"https://api.github.com/repos/abonas/kubeclient/milestones{/number}","notifications_url":"https://api.github.com/repos/abonas/kubeclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abonas/kubeclient/labels{/name}","releases_url":"https://api.github.com/repos/abonas/kubeclient/releases{/id}","created_at":"2014-12-30T10:38:54Z","updated_at":"2015-06-29T14:55:46Z","pushed_at":"2015-06-30T07:30:39Z","git_url":"git://github.com/abonas/kubeclient.git","ssh_url":"git@github.com:abonas/kubeclient.git","clone_url":"https://github.com/abonas/kubeclient.git","svn_url":"https://github.com/abonas/kubeclient","homepage":"","size":1108,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abonas/kubeclient/pulls/98"},"html":{"href":"https://github.com/abonas/kubeclient/pull/98"},"issue":{"href":"https://api.github.com/repos/abonas/kubeclient/issues/98"},"comments":{"href":"https://api.github.com/repos/abonas/kubeclient/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/abonas/kubeclient/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/abonas/kubeclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abonas/kubeclient/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/abonas/kubeclient/statuses/2dc4cbb6c852ae914b57eede2d2e21f3ed12c20e"}}}}