{"action":"opened","number":65206,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/65206","id":195738482,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NzM4NDgy","html_url":"https://github.com/kubernetes/kubernetes/pull/65206","diff_url":"https://github.com/kubernetes/kubernetes/pull/65206.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/65206.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65206","number":65206,"state":"open","locked":false,"title":"sample-apiserver: Add RBAC roles and ClusterRoleBindings for Admission Webhooks","user":{"login":"xmudrii","id":18719127,"node_id":"MDQ6VXNlcjE4NzE5MTI3","avatar_url":"https://avatars0.githubusercontent.com/u/18719127?v=4","gravatar_id":"","url":"https://api.github.com/users/xmudrii","html_url":"https://github.com/xmudrii","followers_url":"https://api.github.com/users/xmudrii/followers","following_url":"https://api.github.com/users/xmudrii/following{/other_user}","gists_url":"https://api.github.com/users/xmudrii/gists{/gist_id}","starred_url":"https://api.github.com/users/xmudrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmudrii/subscriptions","organizations_url":"https://api.github.com/users/xmudrii/orgs","repos_url":"https://api.github.com/users/xmudrii/repos","events_url":"https://api.github.com/users/xmudrii/events{/privacy}","received_events_url":"https://api.github.com/users/xmudrii/received_events","type":"User","site_admin":false},"body":"**What this PR does / why we need it**:\r\n\r\nWhen you run the `sample-apiserver` using the [manifests provided in the artifacts directory](https://github.com/kubernetes/sample-apiserver/tree/master/artifacts/example), you will get the following errors, related to insufficient permissions to list Namespaces and Admission Webhooks:\r\n```\r\nE0619 07:43:06.422862       1 reflector.go:205] k8s.io/sample-apiserver/vendor/k8s.io/client-go/informers/factory.go:130: Failed to list *v1.Namespace: namespaces is forbidden: User \"system:serviceaccount:wardle:apiserver\" cannot list namespaces at the cluster scope\r\nE0619 07:43:06.423981       1 reflector.go:205] k8s.io/sample-apiserver/vendor/k8s.io/client-go/informers/factory.go:130: Failed to list *v1beta1.MutatingWebhookConfiguration: mutatingwebhookconfigurations.admissionregistration.k8s.io is forbidden: User \"system:serviceaccount:wardle:apiserver\" cannot list mutatingwebhookconfigurations.admissionregistration.k8s.io at the cluster scope\r\nE0619 07:43:07.424130       1 reflector.go:205] k8s.io/sample-apiserver/vendor/k8s.io/client-go/informers/factory.go:130: Failed to list *v1beta1.ValidatingWebhookConfiguration: validatingwebhookconfigurations.admissionregistration.k8s.io is forbidden: User \"system:serviceaccount:wardle:apiserver\" cannot list validatingwebhookconfigurations.admissionregistration.k8s.io at the cluster scope\r\n```\r\n\r\nThis PR adds two manifests, `rbac.yaml` containing the RBAC rules, and `rbac-bind.yaml` used to bind roles to the `wardle` service account.\r\n\r\n**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: None\r\n\r\n**Release note**:\r\n```release-note\r\nNONE\r\n```\r\n\r\n/assign @sttts @deads2k \r\n/sig api-machinery","created_at":"2018-06-19T07:47:59Z","updated_at":"2018-06-19T07:47:59Z","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/kubernetes/kubernetes/pulls/65206/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/65206/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/65206/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/7d82014fab5e3cfc5a19c1cc0ff2a1f9b84bf543","head":{"label":"xmudrii:sample-apiserver-rbac","ref":"sample-apiserver-rbac","sha":"7d82014fab5e3cfc5a19c1cc0ff2a1f9b84bf543","user":{"login":"xmudrii","id":18719127,"node_id":"MDQ6VXNlcjE4NzE5MTI3","avatar_url":"https://avatars0.githubusercontent.com/u/18719127?v=4","gravatar_id":"","url":"https://api.github.com/users/xmudrii","html_url":"https://github.com/xmudrii","followers_url":"https://api.github.com/users/xmudrii/followers","following_url":"https://api.github.com/users/xmudrii/following{/other_user}","gists_url":"https://api.github.com/users/xmudrii/gists{/gist_id}","starred_url":"https://api.github.com/users/xmudrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmudrii/subscriptions","organizations_url":"https://api.github.com/users/xmudrii/orgs","repos_url":"https://api.github.com/users/xmudrii/repos","events_url":"https://api.github.com/users/xmudrii/events{/privacy}","received_events_url":"https://api.github.com/users/xmudrii/received_events","type":"User","site_admin":false},"repo":{"id":123281517,"node_id":"MDEwOlJlcG9zaXRvcnkxMjMyODE1MTc=","name":"kubernetes","full_name":"xmudrii/kubernetes","owner":{"login":"xmudrii","id":18719127,"node_id":"MDQ6VXNlcjE4NzE5MTI3","avatar_url":"https://avatars0.githubusercontent.com/u/18719127?v=4","gravatar_id":"","url":"https://api.github.com/users/xmudrii","html_url":"https://github.com/xmudrii","followers_url":"https://api.github.com/users/xmudrii/followers","following_url":"https://api.github.com/users/xmudrii/following{/other_user}","gists_url":"https://api.github.com/users/xmudrii/gists{/gist_id}","starred_url":"https://api.github.com/users/xmudrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmudrii/subscriptions","organizations_url":"https://api.github.com/users/xmudrii/orgs","repos_url":"https://api.github.com/users/xmudrii/repos","events_url":"https://api.github.com/users/xmudrii/events{/privacy}","received_events_url":"https://api.github.com/users/xmudrii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xmudrii/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":true,"url":"https://api.github.com/repos/xmudrii/kubernetes","forks_url":"https://api.github.com/repos/xmudrii/kubernetes/forks","keys_url":"https://api.github.com/repos/xmudrii/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xmudrii/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xmudrii/kubernetes/teams","hooks_url":"https://api.github.com/repos/xmudrii/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/xmudrii/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/xmudrii/kubernetes/events","assignees_url":"https://api.github.com/repos/xmudrii/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/xmudrii/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/xmudrii/kubernetes/tags","blobs_url":"https://api.github.com/repos/xmudrii/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xmudrii/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xmudrii/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/xmudrii/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xmudrii/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/xmudrii/kubernetes/languages","stargazers_url":"https://api.github.com/repos/xmudrii/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/xmudrii/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/xmudrii/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/xmudrii/kubernetes/subscription","commits_url":"https://api.github.com/repos/xmudrii/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/xmudrii/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/xmudrii/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/xmudrii/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/xmudrii/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/xmudrii/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xmudrii/kubernetes/merges","archive_url":"https://api.github.com/repos/xmudrii/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xmudrii/kubernetes/downloads","issues_url":"https://api.github.com/repos/xmudrii/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/xmudrii/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/xmudrii/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/xmudrii/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xmudrii/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/xmudrii/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/xmudrii/kubernetes/deployments","created_at":"2018-02-28T12:24:19Z","updated_at":"2018-06-19T07:36:19Z","pushed_at":"2018-06-19T07:47:11Z","git_url":"git://github.com/xmudrii/kubernetes.git","ssh_url":"git@github.com:xmudrii/kubernetes.git","clone_url":"https://github.com/xmudrii/kubernetes.git","svn_url":"https://github.com/xmudrii/kubernetes","homepage":"http://kubernetes.io","size":563813,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"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":"kubernetes:master","ref":"master","sha":"b005f2fba340e2a9a3111b499f4f0eaf1ceed3eb","user":{"login":"kubernetes","id":13629408,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI5NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"node_id":"MDEwOlJlcG9zaXRvcnkyMDU4MDQ5OA==","name":"kubernetes","full_name":"kubernetes/kubernetes","owner":{"login":"kubernetes","id":13629408,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI5NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes","forks_url":"https://api.github.com/repos/kubernetes/kubernetes/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes/deployments","created_at":"2014-06-06T22:56:04Z","updated_at":"2018-06-19T07:42:09Z","pushed_at":"2018-06-19T07:39:57Z","git_url":"git://github.com/kubernetes/kubernetes.git","ssh_url":"git@github.com:kubernetes/kubernetes.git","clone_url":"https://github.com/kubernetes/kubernetes.git","svn_url":"https://github.com/kubernetes/kubernetes","homepage":"http://kubernetes.io","size":785753,"stargazers_count":37722,"watchers_count":37722,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13183,"mirror_url":null,"archived":false,"open_issues_count":3239,"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":13183,"open_issues":3239,"watchers":37722,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/65206"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/65206"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/65206"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/65206/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/65206/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/65206/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/7d82014fab5e3cfc5a19c1cc0ff2a1f9b84bf543"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":27,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"xmudrii"}}