{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/comments/196603178","pull_request_review_id":130183179,"id":196603178,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjYwMzE3OA==","diff_hunk":"@@ -0,0 +1,200 @@\n+/*\n+Copyright 2018 The Kubernetes Authors.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+package envtest\n+\n+import (\n+\t\"io/ioutil\"\n+\t\"os\"\n+\t\"path/filepath\"\n+\t\"time\"\n+\n+\t\"github.com/ghodss/yaml\"\n+\tapiextensionsv1beta1 \"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1\"\n+\t\"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset\"\n+\t\"k8s.io/apimachinery/pkg/runtime/schema\"\n+\t\"k8s.io/apimachinery/pkg/util/sets\"\n+\t\"k8s.io/apimachinery/pkg/util/wait\"\n+\t\"k8s.io/client-go/rest\"\n+)\n+\n+// CRDOptions are the options for installing CRDs\n+type CRDOptions struct {\n+\t// Paths is the path to the directory containing CRDs\n+\tPaths []string\n+\n+\t// CRDs is a list of CRDs to install\n+\tCRDs []*apiextensionsv1beta1.CustomResourceDefinition\n+\n+\t// maxTime is the max time to wait\n+\tmaxTime time.Duration\n+\n+\t// pollInterval is the interval to check\n+\tpollInterval time.Duration\n+}\n+\n+const defaultPollInterval = 100 * time.Millisecond\n+const defaultMaxWait = 10 * time.Second\n+\n+// InstallCRDs installs a collection of CRDs into a cluster by reading the crd yaml files from a directory\n+func InstallCRDs(config *rest.Config, options CRDOptions) ([]*apiextensionsv1beta1.CustomResourceDefinition, error) {\n+\tdefaultCRDOptions(&options)\n+\n+\t// Read the CRD yamls into options.CRDs\n+\tif err := readCRDFiles(&options); err != nil {\n+\t\treturn options.CRDs, err\n+\t}\n+\n+\t// Create the CRDs in the apiserver\n+\tif err := CreateCRDs(config, options.CRDs); err != nil {\n+\t\treturn options.CRDs, err\n+\t}\n+\n+\t// Wait for the CRDs to appear as Resources in the apiserver\n+\tif err := WaitForCRDs(config, options.CRDs, options); err != nil {\n+\t\treturn options.CRDs, err\n+\t}\n+\n+\treturn options.CRDs, nil\n+}\n+\n+// readCRDFiles reads the directories of CRDs in options.Paths and adds the CRD structs to options.CRDs\n+func readCRDFiles(options *CRDOptions) error {\n+\tif len(options.Paths) > 0 {\n+\t\tfor _, path := range options.Paths {\n+\t\t\tnew, err := readCRDs(path)\n+\t\t\tif err != nil {\n+\t\t\t\treturn err\n+\t\t\t}\n+\t\t\toptions.CRDs = append(options.CRDs, new...)\n+\t\t}\n+\t}\n+\treturn nil\n+}\n+\n+// defaultCRDOptions sets the default values for CRDs\n+func defaultCRDOptions(o *CRDOptions) {\n+\tif o.maxTime == 0 {\n+\t\to.maxTime = defaultMaxWait\n+\t}\n+\tif o.pollInterval == 0 {\n+\t\to.pollInterval = defaultPollInterval\n+\t}\n+}\n+\n+// WaitForCRDs waits for the CRDs to appear in discovery\n+func WaitForCRDs(config *rest.Config, crds []*apiextensionsv1beta1.CustomResourceDefinition, options CRDOptions) error {\n+\t// Add each CRD to a map of GroupVersion to Resource\n+\twaitingFor := map[schema.GroupVersion]*sets.String{}\n+\tfor _, crd := range crds {\n+\t\tgv := schema.GroupVersion{Group: crd.Spec.Group, Version: crd.Spec.Version}\n+\t\tif _, found := waitingFor[gv]; !found {\n+\t\t\t// Initialize the set\n+\t\t\twaitingFor[gv] = &sets.String{}\n+\t\t}\n+\t\t// Add the Resource\n+\t\twaitingFor[gv].Insert(crd.Spec.Names.Plural)\n+\t}\n+\t// Poll until all resources are found\n+\treturn wait.PollImmediate(options.pollInterval, options.maxTime, func() (bool, error) {\n+\t\t// Create a new clientset to avoid any client caching of discovery\n+\t\tcs, err := clientset.NewForConfig(config)\n+\t\tif err != nil {\n+\t\t\treturn false, err\n+\t\t}\n+\n+\t\tallFound := true\n+\t\tfor gv, resources := range waitingFor {\n+\t\t\t// All resources found, do nothing\n+\t\t\tif resources.Len() == 0 {\n+\t\t\t\tdelete(waitingFor, gv)\n+\t\t\t\tcontinue","path":"pkg/envtest/crd.go","position":124,"original_position":124,"commit_id":"64ae3eb9264f9a0a3f992e7a283ab93b1b968be7","original_commit_id":"64ae3eb9264f9a0a3f992e7a283ab93b1b968be7","user":{"login":"droot","id":172029,"node_id":"MDQ6VXNlcjE3MjAyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/172029?v=4","gravatar_id":"","url":"https://api.github.com/users/droot","html_url":"https://github.com/droot","followers_url":"https://api.github.com/users/droot/followers","following_url":"https://api.github.com/users/droot/following{/other_user}","gists_url":"https://api.github.com/users/droot/gists{/gist_id}","starred_url":"https://api.github.com/users/droot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droot/subscriptions","organizations_url":"https://api.github.com/users/droot/orgs","repos_url":"https://api.github.com/users/droot/repos","events_url":"https://api.github.com/users/droot/events{/privacy}","received_events_url":"https://api.github.com/users/droot/received_events","type":"User","site_admin":false},"body":"I wonder if it is safe to delete an element from map while iterating over it ?","created_at":"2018-06-19T22:52:21Z","updated_at":"2018-06-19T22:56:40Z","html_url":"https://github.com/kubernetes-sigs/controller-runtime/pull/51#discussion_r196603178","pull_request_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/comments/196603178"},"html":{"href":"https://github.com/kubernetes-sigs/controller-runtime/pull/51#discussion_r196603178"},"pull_request":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51","id":195916819,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTE2ODE5","html_url":"https://github.com/kubernetes-sigs/controller-runtime/pull/51","diff_url":"https://github.com/kubernetes-sigs/controller-runtime/pull/51.diff","patch_url":"https://github.com/kubernetes-sigs/controller-runtime/pull/51.patch","issue_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues/51","number":51,"state":"open","locked":false,"title":"Support installing CRDs from yaml files in test package","user":{"login":"pwittrock","id":7882754,"node_id":"MDQ6VXNlcjc4ODI3NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7882754?v=4","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"body":"- also rename test package to envtest","created_at":"2018-06-19T18:23:34Z","updated_at":"2018-06-19T22:56:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2829ac1fc6590d5c1abfab759460a31fc7b1d1fa","assignee":{"login":"droot","id":172029,"node_id":"MDQ6VXNlcjE3MjAyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/172029?v=4","gravatar_id":"","url":"https://api.github.com/users/droot","html_url":"https://github.com/droot","followers_url":"https://api.github.com/users/droot/followers","following_url":"https://api.github.com/users/droot/following{/other_user}","gists_url":"https://api.github.com/users/droot/gists{/gist_id}","starred_url":"https://api.github.com/users/droot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droot/subscriptions","organizations_url":"https://api.github.com/users/droot/orgs","repos_url":"https://api.github.com/users/droot/repos","events_url":"https://api.github.com/users/droot/events{/privacy}","received_events_url":"https://api.github.com/users/droot/received_events","type":"User","site_admin":false},"assignees":[{"login":"droot","id":172029,"node_id":"MDQ6VXNlcjE3MjAyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/172029?v=4","gravatar_id":"","url":"https://api.github.com/users/droot","html_url":"https://github.com/droot","followers_url":"https://api.github.com/users/droot/followers","following_url":"https://api.github.com/users/droot/following{/other_user}","gists_url":"https://api.github.com/users/droot/gists{/gist_id}","starred_url":"https://api.github.com/users/droot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droot/subscriptions","organizations_url":"https://api.github.com/users/droot/orgs","repos_url":"https://api.github.com/users/droot/repos","events_url":"https://api.github.com/users/droot/events{/privacy}","received_events_url":"https://api.github.com/users/droot/received_events","type":"User","site_admin":false},{"login":"lichuqiang","id":12265352,"node_id":"MDQ6VXNlcjEyMjY1MzUy","avatar_url":"https://avatars3.githubusercontent.com/u/12265352?v=4","gravatar_id":"","url":"https://api.github.com/users/lichuqiang","html_url":"https://github.com/lichuqiang","followers_url":"https://api.github.com/users/lichuqiang/followers","following_url":"https://api.github.com/users/lichuqiang/following{/other_user}","gists_url":"https://api.github.com/users/lichuqiang/gists{/gist_id}","starred_url":"https://api.github.com/users/lichuqiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lichuqiang/subscriptions","organizations_url":"https://api.github.com/users/lichuqiang/orgs","repos_url":"https://api.github.com/users/lichuqiang/repos","events_url":"https://api.github.com/users/lichuqiang/events{/privacy}","received_events_url":"https://api.github.com/users/lichuqiang/received_events","type":"User","site_admin":false},{"login":"fanzhangio","id":22812247,"node_id":"MDQ6VXNlcjIyODEyMjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/22812247?v=4","gravatar_id":"","url":"https://api.github.com/users/fanzhangio","html_url":"https://github.com/fanzhangio","followers_url":"https://api.github.com/users/fanzhangio/followers","following_url":"https://api.github.com/users/fanzhangio/following{/other_user}","gists_url":"https://api.github.com/users/fanzhangio/gists{/gist_id}","starred_url":"https://api.github.com/users/fanzhangio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanzhangio/subscriptions","organizations_url":"https://api.github.com/users/fanzhangio/orgs","repos_url":"https://api.github.com/users/fanzhangio/repos","events_url":"https://api.github.com/users/fanzhangio/events{/privacy}","received_events_url":"https://api.github.com/users/fanzhangio/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":957854387,"node_id":"MDU6TGFiZWw5NTc4NTQzODc=","url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":957926597,"node_id":"MDU6TGFiZWw5NTc5MjY1OTc=","url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/labels/lgtm","name":"lgtm","color":"15dd18","default":false},{"id":957926583,"node_id":"MDU6TGFiZWw5NTc5MjY1ODM=","url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/labels/size/XL","name":"size/XL","color":"ee5500","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51/commits","review_comments_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51/comments","review_comment_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues/51/comments","statuses_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/statuses/64ae3eb9264f9a0a3f992e7a283ab93b1b968be7","head":{"label":"pwittrock:crd-test","ref":"crd-test","sha":"64ae3eb9264f9a0a3f992e7a283ab93b1b968be7","user":{"login":"pwittrock","id":7882754,"node_id":"MDQ6VXNlcjc4ODI3NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7882754?v=4","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"repo":{"id":136500453,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY1MDA0NTM=","name":"controller-runtime","full_name":"pwittrock/controller-runtime","owner":{"login":"pwittrock","id":7882754,"node_id":"MDQ6VXNlcjc4ODI3NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7882754?v=4","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwittrock/controller-runtime","description":"Repo for the controller-runtime subproject of kubebuilder (sig-apimachinery)","fork":true,"url":"https://api.github.com/repos/pwittrock/controller-runtime","forks_url":"https://api.github.com/repos/pwittrock/controller-runtime/forks","keys_url":"https://api.github.com/repos/pwittrock/controller-runtime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwittrock/controller-runtime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwittrock/controller-runtime/teams","hooks_url":"https://api.github.com/repos/pwittrock/controller-runtime/hooks","issue_events_url":"https://api.github.com/repos/pwittrock/controller-runtime/issues/events{/number}","events_url":"https://api.github.com/repos/pwittrock/controller-runtime/events","assignees_url":"https://api.github.com/repos/pwittrock/controller-runtime/assignees{/user}","branches_url":"https://api.github.com/repos/pwittrock/controller-runtime/branches{/branch}","tags_url":"https://api.github.com/repos/pwittrock/controller-runtime/tags","blobs_url":"https://api.github.com/repos/pwittrock/controller-runtime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwittrock/controller-runtime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwittrock/controller-runtime/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwittrock/controller-runtime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwittrock/controller-runtime/statuses/{sha}","languages_url":"https://api.github.com/repos/pwittrock/controller-runtime/languages","stargazers_url":"https://api.github.com/repos/pwittrock/controller-runtime/stargazers","contributors_url":"https://api.github.com/repos/pwittrock/controller-runtime/contributors","subscribers_url":"https://api.github.com/repos/pwittrock/controller-runtime/subscribers","subscription_url":"https://api.github.com/repos/pwittrock/controller-runtime/subscription","commits_url":"https://api.github.com/repos/pwittrock/controller-runtime/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwittrock/controller-runtime/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwittrock/controller-runtime/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwittrock/controller-runtime/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwittrock/controller-runtime/contents/{+path}","compare_url":"https://api.github.com/repos/pwittrock/controller-runtime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwittrock/controller-runtime/merges","archive_url":"https://api.github.com/repos/pwittrock/controller-runtime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwittrock/controller-runtime/downloads","issues_url":"https://api.github.com/repos/pwittrock/controller-runtime/issues{/number}","pulls_url":"https://api.github.com/repos/pwittrock/controller-runtime/pulls{/number}","milestones_url":"https://api.github.com/repos/pwittrock/controller-runtime/milestones{/number}","notifications_url":"https://api.github.com/repos/pwittrock/controller-runtime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwittrock/controller-runtime/labels{/name}","releases_url":"https://api.github.com/repos/pwittrock/controller-runtime/releases{/id}","deployments_url":"https://api.github.com/repos/pwittrock/controller-runtime/deployments","created_at":"2018-06-07T15:56:59Z","updated_at":"2018-06-17T17:32:55Z","pushed_at":"2018-06-19T18:23:18Z","git_url":"git://github.com/pwittrock/controller-runtime.git","ssh_url":"git@github.com:pwittrock/controller-runtime.git","clone_url":"https://github.com/pwittrock/controller-runtime.git","svn_url":"https://github.com/pwittrock/controller-runtime","homepage":null,"size":20942,"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":"kubernetes-sigs:master","ref":"master","sha":"e2057787567f444950bb8f05719d6e7fc567d8d9","user":{"login":"kubernetes-sigs","id":36015203,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MDE1MjAz","avatar_url":"https://avatars1.githubusercontent.com/u/36015203?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes-sigs","html_url":"https://github.com/kubernetes-sigs","followers_url":"https://api.github.com/users/kubernetes-sigs/followers","following_url":"https://api.github.com/users/kubernetes-sigs/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-sigs/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-sigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-sigs/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-sigs/orgs","repos_url":"https://api.github.com/users/kubernetes-sigs/repos","events_url":"https://api.github.com/users/kubernetes-sigs/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-sigs/received_events","type":"Organization","site_admin":false},"repo":{"id":136494223,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY0OTQyMjM=","name":"controller-runtime","full_name":"kubernetes-sigs/controller-runtime","owner":{"login":"kubernetes-sigs","id":36015203,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MDE1MjAz","avatar_url":"https://avatars1.githubusercontent.com/u/36015203?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes-sigs","html_url":"https://github.com/kubernetes-sigs","followers_url":"https://api.github.com/users/kubernetes-sigs/followers","following_url":"https://api.github.com/users/kubernetes-sigs/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-sigs/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-sigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-sigs/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-sigs/orgs","repos_url":"https://api.github.com/users/kubernetes-sigs/repos","events_url":"https://api.github.com/users/kubernetes-sigs/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-sigs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes-sigs/controller-runtime","description":"Repo for the controller-runtime subproject of kubebuilder (sig-apimachinery)","fork":false,"url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime","forks_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/forks","keys_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/teams","hooks_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/hooks","issue_events_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/events","assignees_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/tags","blobs_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/languages","stargazers_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/stargazers","contributors_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/contributors","subscribers_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/subscribers","subscription_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/subscription","commits_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/merges","archive_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/downloads","issues_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/deployments","created_at":"2018-06-07T15:08:03Z","updated_at":"2018-06-19T17:09:38Z","pushed_at":"2018-06-19T22:05:18Z","git_url":"git://github.com/kubernetes-sigs/controller-runtime.git","ssh_url":"git@github.com:kubernetes-sigs/controller-runtime.git","clone_url":"https://github.com/kubernetes-sigs/controller-runtime.git","svn_url":"https://github.com/kubernetes-sigs/controller-runtime","homepage":null,"size":20921,"stargazers_count":15,"watchers_count":15,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":14,"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":10,"open_issues":14,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51"},"html":{"href":"https://github.com/kubernetes-sigs/controller-runtime/pull/51"},"issue":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues/51"},"comments":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes-sigs/controller-runtime/statuses/64ae3eb9264f9a0a3f992e7a283ab93b1b968be7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"droot"}}