{"action":"opened","number":61400,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/61400","id":176158018,"html_url":"https://github.com/kubernetes/kubernetes/pull/61400","diff_url":"https://github.com/kubernetes/kubernetes/pull/61400.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/61400.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61400","number":61400,"state":"open","locked":false,"title":"code-gen: allow specifying custom resync periods for certain informer types","user":{"login":"natronq","id":6431099,"avatar_url":"https://avatars0.githubusercontent.com/u/6431099?v=4","gravatar_id":"","url":"https://api.github.com/users/natronq","html_url":"https://github.com/natronq","followers_url":"https://api.github.com/users/natronq/followers","following_url":"https://api.github.com/users/natronq/following{/other_user}","gists_url":"https://api.github.com/users/natronq/gists{/gist_id}","starred_url":"https://api.github.com/users/natronq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natronq/subscriptions","organizations_url":"https://api.github.com/users/natronq/orgs","repos_url":"https://api.github.com/users/natronq/repos","events_url":"https://api.github.com/users/natronq/events{/privacy}","received_events_url":"https://api.github.com/users/natronq/received_events","type":"User","site_admin":false},"body":"**What this PR does / why we need it**:\r\nThis PR extends the informer code-generator to allow the consumer to specify a custom resync period for certain informer types and uses the default resync period if none is defined.\r\n\r\n**Special notes for your reviewer**:\r\nExample:\r\n```go\r\ncs := clientset.NewForConfigOrDie(config)\r\nresyncConfig := externalversions.ResyncConfiguration{\r\n  &samplev1alpha1.Sample{}: 30 * time.Second,\r\n}\r\ninformer := externalversions.NewFilteredSharedInformerFactory(cs, 2*time.Minute, v1.NamespaceAll,\r\n\t\t\tnil, resyncConfig)\r\n```\r\n**Release note**:\r\n<!--  Write your release note:\r\n1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string \"action required\".\r\n2. If no release note is required, just write \"NONE\".\r\n-->\r\nNONE\r\n","created_at":"2018-03-20T11:16:26Z","updated_at":"2018-03-20T11:16:26Z","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/61400/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/61400/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/61400/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/806461042da3df20a560220fe6536b2500e2dbb7","head":{"label":"natronq:master","ref":"master","sha":"806461042da3df20a560220fe6536b2500e2dbb7","user":{"login":"natronq","id":6431099,"avatar_url":"https://avatars0.githubusercontent.com/u/6431099?v=4","gravatar_id":"","url":"https://api.github.com/users/natronq","html_url":"https://github.com/natronq","followers_url":"https://api.github.com/users/natronq/followers","following_url":"https://api.github.com/users/natronq/following{/other_user}","gists_url":"https://api.github.com/users/natronq/gists{/gist_id}","starred_url":"https://api.github.com/users/natronq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natronq/subscriptions","organizations_url":"https://api.github.com/users/natronq/orgs","repos_url":"https://api.github.com/users/natronq/repos","events_url":"https://api.github.com/users/natronq/events{/privacy}","received_events_url":"https://api.github.com/users/natronq/received_events","type":"User","site_admin":false},"repo":{"id":126001994,"name":"kubernetes","full_name":"natronq/kubernetes","owner":{"login":"natronq","id":6431099,"avatar_url":"https://avatars0.githubusercontent.com/u/6431099?v=4","gravatar_id":"","url":"https://api.github.com/users/natronq","html_url":"https://github.com/natronq","followers_url":"https://api.github.com/users/natronq/followers","following_url":"https://api.github.com/users/natronq/following{/other_user}","gists_url":"https://api.github.com/users/natronq/gists{/gist_id}","starred_url":"https://api.github.com/users/natronq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natronq/subscriptions","organizations_url":"https://api.github.com/users/natronq/orgs","repos_url":"https://api.github.com/users/natronq/repos","events_url":"https://api.github.com/users/natronq/events{/privacy}","received_events_url":"https://api.github.com/users/natronq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/natronq/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":true,"url":"https://api.github.com/repos/natronq/kubernetes","forks_url":"https://api.github.com/repos/natronq/kubernetes/forks","keys_url":"https://api.github.com/repos/natronq/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natronq/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natronq/kubernetes/teams","hooks_url":"https://api.github.com/repos/natronq/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/natronq/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/natronq/kubernetes/events","assignees_url":"https://api.github.com/repos/natronq/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/natronq/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/natronq/kubernetes/tags","blobs_url":"https://api.github.com/repos/natronq/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natronq/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natronq/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/natronq/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natronq/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/natronq/kubernetes/languages","stargazers_url":"https://api.github.com/repos/natronq/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/natronq/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/natronq/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/natronq/kubernetes/subscription","commits_url":"https://api.github.com/repos/natronq/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/natronq/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/natronq/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/natronq/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/natronq/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/natronq/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natronq/kubernetes/merges","archive_url":"https://api.github.com/repos/natronq/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natronq/kubernetes/downloads","issues_url":"https://api.github.com/repos/natronq/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/natronq/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/natronq/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/natronq/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natronq/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/natronq/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/natronq/kubernetes/deployments","created_at":"2018-03-20T10:42:14Z","updated_at":"2018-03-20T11:15:42Z","pushed_at":"2018-03-20T11:15:40Z","git_url":"git://github.com/natronq/kubernetes.git","ssh_url":"git@github.com:natronq/kubernetes.git","clone_url":"https://github.com/natronq/kubernetes.git","svn_url":"https://github.com/natronq/kubernetes","homepage":"http://kubernetes.io","size":765217,"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"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"18d9e1c450d6e080dad11af1f27d371325fba5ef","user":{"login":"kubernetes","id":13629408,"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,"name":"kubernetes","full_name":"kubernetes/kubernetes","owner":{"login":"kubernetes","id":13629408,"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-03-20T10:54:02Z","pushed_at":"2018-03-20T10:51:36Z","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":765217,"stargazers_count":33939,"watchers_count":33939,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12040,"mirror_url":null,"archived":false,"open_issues_count":3541,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":12040,"open_issues":3541,"watchers":33939,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/61400"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/61400"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/61400"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/61400/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/61400/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/61400/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/806461042da3df20a560220fe6536b2500e2dbb7"}},"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":77,"deletions":13,"changed_files":4}}
{"actor":{"display_login":"natronq"}}