{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/kubeless/http-trigger/pulls/5","id":212126641,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMTI2NjQx","html_url":"https://github.com/kubeless/http-trigger/pull/5","diff_url":"https://github.com/kubeless/http-trigger/pull/5.diff","patch_url":"https://github.com/kubeless/http-trigger/pull/5.patch","issue_url":"https://api.github.com/repos/kubeless/http-trigger/issues/5","number":5,"state":"open","locked":false,"title":"Allow Function Controller to use mounted OAuth token instead of serviceaccount","user":{"login":"jamding","id":5925684,"node_id":"MDQ6VXNlcjU5MjU2ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5925684?v=4","gravatar_id":"","url":"https://api.github.com/users/jamding","html_url":"https://github.com/jamding","followers_url":"https://api.github.com/users/jamding/followers","following_url":"https://api.github.com/users/jamding/following{/other_user}","gists_url":"https://api.github.com/users/jamding/gists{/gist_id}","starred_url":"https://api.github.com/users/jamding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamding/subscriptions","organizations_url":"https://api.github.com/users/jamding/orgs","repos_url":"https://api.github.com/users/jamding/repos","events_url":"https://api.github.com/users/jamding/events{/privacy}","received_events_url":"https://api.github.com/users/jamding/received_events","type":"User","site_admin":false},"body":"**Issue Ref**: #4 \r\n \r\n**Description**: \r\nThis PR allows you to supply a bearer token for the Kubeless Function Controller to use for k8s operations instead of using a k8s service account. Do so by setting the environmental variable KUBELESS_TOKEN_FILE_PATH to the filepath where a file containing the bearer token will be mounted.\r\n\r\n**TODOs**:\r\n - [ ] Ready to review\r\n - [ ] Automated Tests\r\n - [ ] Docs\r\n\r\n@andresmgot ","created_at":"2018-08-30T15:47:33Z","updated_at":"2018-08-30T15:47:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubeless/http-trigger/pulls/5/commits","review_comments_url":"https://api.github.com/repos/kubeless/http-trigger/pulls/5/comments","review_comment_url":"https://api.github.com/repos/kubeless/http-trigger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubeless/http-trigger/issues/5/comments","statuses_url":"https://api.github.com/repos/kubeless/http-trigger/statuses/771df9f45cc12c340ba510b604508f74ff82c838","head":{"label":"jamding:allow-oauth-token","ref":"allow-oauth-token","sha":"771df9f45cc12c340ba510b604508f74ff82c838","user":{"login":"jamding","id":5925684,"node_id":"MDQ6VXNlcjU5MjU2ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5925684?v=4","gravatar_id":"","url":"https://api.github.com/users/jamding","html_url":"https://github.com/jamding","followers_url":"https://api.github.com/users/jamding/followers","following_url":"https://api.github.com/users/jamding/following{/other_user}","gists_url":"https://api.github.com/users/jamding/gists{/gist_id}","starred_url":"https://api.github.com/users/jamding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamding/subscriptions","organizations_url":"https://api.github.com/users/jamding/orgs","repos_url":"https://api.github.com/users/jamding/repos","events_url":"https://api.github.com/users/jamding/events{/privacy}","received_events_url":"https://api.github.com/users/jamding/received_events","type":"User","site_admin":false},"repo":{"id":146755373,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3NTUzNzM=","name":"http-trigger","full_name":"jamding/http-trigger","owner":{"login":"jamding","id":5925684,"node_id":"MDQ6VXNlcjU5MjU2ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5925684?v=4","gravatar_id":"","url":"https://api.github.com/users/jamding","html_url":"https://github.com/jamding","followers_url":"https://api.github.com/users/jamding/followers","following_url":"https://api.github.com/users/jamding/following{/other_user}","gists_url":"https://api.github.com/users/jamding/gists{/gist_id}","starred_url":"https://api.github.com/users/jamding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamding/subscriptions","organizations_url":"https://api.github.com/users/jamding/orgs","repos_url":"https://api.github.com/users/jamding/repos","events_url":"https://api.github.com/users/jamding/events{/privacy}","received_events_url":"https://api.github.com/users/jamding/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamding/http-trigger","description":"Kubernetes CRD controller for http invocation of Kubeless functions","fork":true,"url":"https://api.github.com/repos/jamding/http-trigger","forks_url":"https://api.github.com/repos/jamding/http-trigger/forks","keys_url":"https://api.github.com/repos/jamding/http-trigger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamding/http-trigger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamding/http-trigger/teams","hooks_url":"https://api.github.com/repos/jamding/http-trigger/hooks","issue_events_url":"https://api.github.com/repos/jamding/http-trigger/issues/events{/number}","events_url":"https://api.github.com/repos/jamding/http-trigger/events","assignees_url":"https://api.github.com/repos/jamding/http-trigger/assignees{/user}","branches_url":"https://api.github.com/repos/jamding/http-trigger/branches{/branch}","tags_url":"https://api.github.com/repos/jamding/http-trigger/tags","blobs_url":"https://api.github.com/repos/jamding/http-trigger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamding/http-trigger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamding/http-trigger/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamding/http-trigger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamding/http-trigger/statuses/{sha}","languages_url":"https://api.github.com/repos/jamding/http-trigger/languages","stargazers_url":"https://api.github.com/repos/jamding/http-trigger/stargazers","contributors_url":"https://api.github.com/repos/jamding/http-trigger/contributors","subscribers_url":"https://api.github.com/repos/jamding/http-trigger/subscribers","subscription_url":"https://api.github.com/repos/jamding/http-trigger/subscription","commits_url":"https://api.github.com/repos/jamding/http-trigger/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamding/http-trigger/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamding/http-trigger/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamding/http-trigger/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamding/http-trigger/contents/{+path}","compare_url":"https://api.github.com/repos/jamding/http-trigger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamding/http-trigger/merges","archive_url":"https://api.github.com/repos/jamding/http-trigger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamding/http-trigger/downloads","issues_url":"https://api.github.com/repos/jamding/http-trigger/issues{/number}","pulls_url":"https://api.github.com/repos/jamding/http-trigger/pulls{/number}","milestones_url":"https://api.github.com/repos/jamding/http-trigger/milestones{/number}","notifications_url":"https://api.github.com/repos/jamding/http-trigger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamding/http-trigger/labels{/name}","releases_url":"https://api.github.com/repos/jamding/http-trigger/releases{/id}","deployments_url":"https://api.github.com/repos/jamding/http-trigger/deployments","created_at":"2018-08-30T13:41:17Z","updated_at":"2018-08-30T13:41:19Z","pushed_at":"2018-08-30T15:42:50Z","git_url":"git://github.com/jamding/http-trigger.git","ssh_url":"git@github.com:jamding/http-trigger.git","clone_url":"https://github.com/jamding/http-trigger.git","svn_url":"https://github.com/jamding/http-trigger","homepage":"","size":25560,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"kubeless:master","ref":"master","sha":"a01455e368f78d7aaf8a032eb5a5c17ecc6e59c0","user":{"login":"kubeless","id":25339039,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzM5MDM5","avatar_url":"https://avatars3.githubusercontent.com/u/25339039?v=4","gravatar_id":"","url":"https://api.github.com/users/kubeless","html_url":"https://github.com/kubeless","followers_url":"https://api.github.com/users/kubeless/followers","following_url":"https://api.github.com/users/kubeless/following{/other_user}","gists_url":"https://api.github.com/users/kubeless/gists{/gist_id}","starred_url":"https://api.github.com/users/kubeless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubeless/subscriptions","organizations_url":"https://api.github.com/users/kubeless/orgs","repos_url":"https://api.github.com/users/kubeless/repos","events_url":"https://api.github.com/users/kubeless/events{/privacy}","received_events_url":"https://api.github.com/users/kubeless/received_events","type":"Organization","site_admin":false},"repo":{"id":137755661,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3NTU2NjE=","name":"http-trigger","full_name":"kubeless/http-trigger","owner":{"login":"kubeless","id":25339039,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzM5MDM5","avatar_url":"https://avatars3.githubusercontent.com/u/25339039?v=4","gravatar_id":"","url":"https://api.github.com/users/kubeless","html_url":"https://github.com/kubeless","followers_url":"https://api.github.com/users/kubeless/followers","following_url":"https://api.github.com/users/kubeless/following{/other_user}","gists_url":"https://api.github.com/users/kubeless/gists{/gist_id}","starred_url":"https://api.github.com/users/kubeless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubeless/subscriptions","organizations_url":"https://api.github.com/users/kubeless/orgs","repos_url":"https://api.github.com/users/kubeless/repos","events_url":"https://api.github.com/users/kubeless/events{/privacy}","received_events_url":"https://api.github.com/users/kubeless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubeless/http-trigger","description":"Kubernetes CRD controller for http invocation of Kubeless functions","fork":false,"url":"https://api.github.com/repos/kubeless/http-trigger","forks_url":"https://api.github.com/repos/kubeless/http-trigger/forks","keys_url":"https://api.github.com/repos/kubeless/http-trigger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubeless/http-trigger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubeless/http-trigger/teams","hooks_url":"https://api.github.com/repos/kubeless/http-trigger/hooks","issue_events_url":"https://api.github.com/repos/kubeless/http-trigger/issues/events{/number}","events_url":"https://api.github.com/repos/kubeless/http-trigger/events","assignees_url":"https://api.github.com/repos/kubeless/http-trigger/assignees{/user}","branches_url":"https://api.github.com/repos/kubeless/http-trigger/branches{/branch}","tags_url":"https://api.github.com/repos/kubeless/http-trigger/tags","blobs_url":"https://api.github.com/repos/kubeless/http-trigger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubeless/http-trigger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubeless/http-trigger/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubeless/http-trigger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubeless/http-trigger/statuses/{sha}","languages_url":"https://api.github.com/repos/kubeless/http-trigger/languages","stargazers_url":"https://api.github.com/repos/kubeless/http-trigger/stargazers","contributors_url":"https://api.github.com/repos/kubeless/http-trigger/contributors","subscribers_url":"https://api.github.com/repos/kubeless/http-trigger/subscribers","subscription_url":"https://api.github.com/repos/kubeless/http-trigger/subscription","commits_url":"https://api.github.com/repos/kubeless/http-trigger/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubeless/http-trigger/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubeless/http-trigger/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubeless/http-trigger/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubeless/http-trigger/contents/{+path}","compare_url":"https://api.github.com/repos/kubeless/http-trigger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubeless/http-trigger/merges","archive_url":"https://api.github.com/repos/kubeless/http-trigger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubeless/http-trigger/downloads","issues_url":"https://api.github.com/repos/kubeless/http-trigger/issues{/number}","pulls_url":"https://api.github.com/repos/kubeless/http-trigger/pulls{/number}","milestones_url":"https://api.github.com/repos/kubeless/http-trigger/milestones{/number}","notifications_url":"https://api.github.com/repos/kubeless/http-trigger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubeless/http-trigger/labels{/name}","releases_url":"https://api.github.com/repos/kubeless/http-trigger/releases{/id}","deployments_url":"https://api.github.com/repos/kubeless/http-trigger/deployments","created_at":"2018-06-18T13:33:44Z","updated_at":"2018-08-02T14:20:20Z","pushed_at":"2018-08-02T14:20:38Z","git_url":"git://github.com/kubeless/http-trigger.git","ssh_url":"git@github.com:kubeless/http-trigger.git","clone_url":"https://github.com/kubeless/http-trigger.git","svn_url":"https://github.com/kubeless/http-trigger","homepage":"","size":25560,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"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":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubeless/http-trigger/pulls/5"},"html":{"href":"https://github.com/kubeless/http-trigger/pull/5"},"issue":{"href":"https://api.github.com/repos/kubeless/http-trigger/issues/5"},"comments":{"href":"https://api.github.com/repos/kubeless/http-trigger/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/kubeless/http-trigger/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/kubeless/http-trigger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubeless/http-trigger/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/kubeless/http-trigger/statuses/771df9f45cc12c340ba510b604508f74ff82c838"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":20,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"jamding"}}