{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/flannel/pulls/comments/77903239","id":77903239,"diff_hunk":"@@ -0,0 +1,293 @@\n+// Copyright 2016 flannel 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+package kube\n+\n+import (\n+\t\"encoding/json\"\n+\t\"errors\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"net\"\n+\t\"os\"\n+\t\"time\"\n+\n+\t\"github.com/coreos/flannel/pkg/ip\"\n+\t\"github.com/coreos/flannel/subnet\"\n+\n+\t\"github.com/golang/glog\"\n+\t\"golang.org/x/net/context\"\n+\t\"k8s.io/kubernetes/pkg/api\"\n+\t\"k8s.io/kubernetes/pkg/client/cache\"\n+\tclientset \"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset\"\n+\t\"k8s.io/kubernetes/pkg/client/restclient\"\n+\t\"k8s.io/kubernetes/pkg/controller/framework\"\n+\t\"k8s.io/kubernetes/pkg/runtime\"\n+\tutilruntime \"k8s.io/kubernetes/pkg/util/runtime\"\n+\t\"k8s.io/kubernetes/pkg/watch\"\n+)\n+\n+var (\n+\tErrUnimplemented = errors.New(\"unimplemented\")\n+\tkubeSubnetCfg    *subnet.Config\n+\n+\tdefaultCniConf = []byte(`\n+{\n+    \"name\": \"cbr0\",\n+    \"type\": \"flannel\",\n+    \"delegate\": {\n+      \"isDefaultGateway\": true\n+    }\n+}`)\n+)\n+\n+const (\n+\tresyncPeriod = 5 * time.Minute\n+\n+\tsubnetKubeManagedAnnotation = \"flannel.alpha.coreos.com/kube-subnet-manager\"\n+\tbackendDataAnnotation       = \"flannel.alpha.coreos.com/backend-data\"\n+\tbackendTypeAnnotation       = \"flannel.alpha.coreos.com/backend-type\"\n+\tbackendPublicIPAnnotation   = \"flannel.alpha.coreos.com/public-ip\"\n+\n+\tcniConfPath       = \"/etc/kube-flannel/cni-conf.json\"\n+\tcniConfTargetPath = \"/etc/cni/net.d/10-flannel.conf\"\n+\tnetConfPath       = \"/etc/kube-flannel/net-conf.json\"\n+)\n+\n+type kubeSubnetManager struct {\n+\tclient         clientset.Interface\n+\tnodeName       string\n+\tnodeStore      cache.StoreToNodeLister\n+\tnodeController *framework.Controller\n+\tsubnetConf     *subnet.Config\n+}\n+\n+func NewSubnetManager() (subnet.Manager, error) {\n+\tcfg, err := restclient.InClusterConfig()\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"unable to initialize inclusterconfig: %v\", err)\n+\t}\n+\tc, err := clientset.NewForConfig(cfg)\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"unable to initialize client: %v\", err)\n+\t}\n+\n+\tpodName := os.Getenv(\"POD_NAME\")\n+\tpodNamespace := os.Getenv(\"POD_NAMESPACE\")\n+\tif podName == \"\" || podNamespace == \"\" {\n+\t\treturn nil, fmt.Errorf(\"env variables POD_NAME and POD_NAMESPACE must be set\")\n+\t}\n+\n+\tpod, err := c.Pods(podNamespace).Get(podName)\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"error retrieving pod spec for '%s/%s': %v\", podNamespace, podName, err)\n+\t}\n+\tnodeName := pod.Spec.NodeName\n+\tif nodeName == \"\" {\n+\t\treturn nil, fmt.Errorf(\"node name not present in pod spec '%s/%s'\", podNamespace, podName)\n+\t}\n+\n+\tvar cniConf, netConf []byte\n+\tif _, err := os.Stat(cniConfPath); os.IsNotExist(err) {\n+\t\tcniConf = defaultCniConf\n+\t} else {\n+\t\tcniConf, err = ioutil.ReadFile(cniConfPath)\n+\t\tif err != nil {\n+\t\t\treturn nil, fmt.Errorf(\"failed to read cni conf: %v\", err)\n+\t\t}\n+\t}\n+\tnetConf, err = ioutil.ReadFile(netConfPath)\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"failed to read net conf: %v\", err)\n+\t}\n+\n+\terr = ioutil.WriteFile(cniConfTargetPath, []byte(cniConf), 0644)\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"failed to write cni conf: %v\", err)\n+\t}\n+\n+\tsc, err := subnet.ParseConfig(string(netConf))\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"error parsing subnet config: %s\", err)\n+\t}\n+\tsm, err := newKubeSubnetManager(c, sc, nodeName)\n+\tif err != nil {\n+\t\treturn nil, fmt.Errorf(\"error creating network manager: %s\", err)\n+\t}\n+\tgo sm.Run(context.Background())\n+\treturn sm, err\n+}\n+\n+func newKubeSubnetManager(c clientset.Interface, sc *subnet.Config, nodeName string) (*kubeSubnetManager, error) {\n+\tvar ksm kubeSubnetManager\n+\tksm.client = c\n+\tksm.nodeName = nodeName\n+\tksm.subnetConf = sc\n+\tksm.nodeStore.Store, ksm.nodeController = framework.NewInformer(\n+\t\t&cache.ListWatch{\n+\t\t\tListFunc: func(options api.ListOptions) (runtime.Object, error) {\n+\t\t\t\treturn ksm.client.Core().Nodes().List(options)\n+\t\t\t},\n+\t\t\tWatchFunc: func(options api.ListOptions) (watch.Interface, error) {\n+\t\t\t\treturn ksm.client.Core().Nodes().Watch(options)\n+\t\t\t},\n+\t\t},\n+\t\t&api.Node{},\n+\t\tresyncPeriod,\n+\t\tframework.ResourceEventHandlerFuncs{},\n+\t)\n+\treturn &ksm, nil\n+}\n+\n+func (ksm *kubeSubnetManager) GetNetworkConfig(ctx context.Context, network string) (*subnet.Config, error) {\n+\treturn ksm.subnetConf, nil\n+}\n+\n+func (ksm *kubeSubnetManager) AcquireLease(ctx context.Context, network string, attrs *subnet.LeaseAttrs) (*subnet.Lease, error) {\n+\tnobj, found, err := ksm.nodeStore.Store.GetByKey(ksm.nodeName)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\tif !found {\n+\t\treturn nil, fmt.Errorf(\"node %q not found\", ksm.nodeName)\n+\t}\n+\tn, ok := nobj.(*api.Node)\n+\tif !ok {\n+\t\treturn nil, fmt.Errorf(\"nobj was not a *api.Node\")\n+\t}\n+\tif n.Spec.PodCIDR == \"\" {\n+\t\treturn nil, fmt.Errorf(\"node %q pod cidr not assigned\", ksm.nodeName)\n+\t}\n+\tbd, err := attrs.BackendData.MarshalJSON()\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\t_, cidr, err := net.ParseCIDR(n.Spec.PodCIDR)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\tif n.Annotations[backendDataAnnotation] != string(bd) ||\n+\t\tn.Annotations[backendTypeAnnotation] != attrs.BackendType ||\n+\t\tn.Annotations[backendPublicIPAnnotation] != attrs.PublicIP.String() ||\n+\t\tn.Annotations[subnetKubeManagedAnnotation] != \"true\" {\n+\t\tn.Annotations[backendTypeAnnotation] = attrs.BackendType\n+\t\tn.Annotations[backendDataAnnotation] = string(bd)\n+\t\tn.Annotations[backendPublicIPAnnotation] = attrs.PublicIP.String()\n+\t\tn.Annotations[subnetKubeManagedAnnotation] = \"true\"\n+\t\tn, err = ksm.client.Core().Nodes().Update(n)\n+\t\tif err != nil {\n+\t\t\treturn nil, err\n+\t\t}\n+\t}\n+\treturn &subnet.Lease{\n+\t\tSubnet:     ip.FromIPNet(cidr),\n+\t\tAttrs:      *attrs,\n+\t\tExpiration: time.Now().Add(24 * time.Hour),\n+\t}, nil\n+}\n+\n+func (ksm *kubeSubnetManager) RenewLease(ctx context.Context, network string, lease *subnet.Lease) error {\n+\treturn nil\n+}\n+\n+func (ksm *kubeSubnetManager) WatchLease(ctx context.Context, network string, sn ip.IP4Net, cursor interface{}) (subnet.LeaseWatchResult, error) {\n+\ttime.Sleep(time.Second)\n+\tnobj, found, err := ksm.nodeStore.Store.GetByKey(ksm.nodeName)","path":"subnet/kube/kube.go","position":181,"original_position":206,"commit_id":"5df964289f6c10f518d05c4d844c779e6edd3c5b","original_commit_id":"f52fee7cfe1824e959e42bc439088af752dc06bd","user":{"login":"mikedanese","id":1787169,"avatar_url":"https://avatars.githubusercontent.com/u/1787169?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedanese","html_url":"https://github.com/mikedanese","followers_url":"https://api.github.com/users/mikedanese/followers","following_url":"https://api.github.com/users/mikedanese/following{/other_user}","gists_url":"https://api.github.com/users/mikedanese/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedanese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedanese/subscriptions","organizations_url":"https://api.github.com/users/mikedanese/orgs","repos_url":"https://api.github.com/users/mikedanese/repos","events_url":"https://api.github.com/users/mikedanese/events{/privacy}","received_events_url":"https://api.github.com/users/mikedanese/received_events","type":"User","site_admin":false},"body":"We already are. The store is maintained by a reflector which is setup inside the framework.Informer. The framework.Informer has a superset of the functionality.","created_at":"2016-09-07T21:02:59Z","updated_at":"2016-09-07T21:02:59Z","html_url":"https://github.com/coreos/flannel/pull/483#discussion_r77903239","pull_request_url":"https://api.github.com/repos/coreos/flannel/pulls/483","_links":{"self":{"href":"https://api.github.com/repos/coreos/flannel/pulls/comments/77903239"},"html":{"href":"https://github.com/coreos/flannel/pull/483#discussion_r77903239"},"pull_request":{"href":"https://api.github.com/repos/coreos/flannel/pulls/483"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/flannel/pulls/483","id":80130260,"html_url":"https://github.com/coreos/flannel/pull/483","diff_url":"https://github.com/coreos/flannel/pull/483.diff","patch_url":"https://github.com/coreos/flannel/pull/483.patch","issue_url":"https://api.github.com/repos/coreos/flannel/issues/483","number":483,"state":"open","locked":false,"title":"add a subnet manager backed by the kubernetes apiserver","user":{"login":"mikedanese","id":1787169,"avatar_url":"https://avatars.githubusercontent.com/u/1787169?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedanese","html_url":"https://github.com/mikedanese","followers_url":"https://api.github.com/users/mikedanese/followers","following_url":"https://api.github.com/users/mikedanese/following{/other_user}","gists_url":"https://api.github.com/users/mikedanese/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedanese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedanese/subscriptions","organizations_url":"https://api.github.com/users/mikedanese/orgs","repos_url":"https://api.github.com/users/mikedanese/repos","events_url":"https://api.github.com/users/mikedanese/events{/privacy}","received_events_url":"https://api.github.com/users/mikedanese/received_events","type":"User","site_admin":false},"body":"Still figuring out glide... It builds in my gopath :) but havent' tested it end to end yet.\r\n\r\nRequires an etcd client bump and a whole lot of new dependencies of the kubernetes client.\r\n\r\ncc @aaronlevy  @luxas","created_at":"2016-08-04T18:52:23Z","updated_at":"2016-09-07T21:02:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abf490094499ddae6ad89d4d193ed22737573016","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/coreos/flannel/milestones/4","html_url":"https://github.com/coreos/flannel/milestones/v0.7.0%20-%20new%20features","labels_url":"https://api.github.com/repos/coreos/flannel/milestones/4/labels","id":1824770,"number":4,"title":"v0.7.0 - new features","description":"","creator":{"login":"tomdee","id":6635,"avatar_url":"https://avatars.githubusercontent.com/u/6635?v=3","gravatar_id":"","url":"https://api.github.com/users/tomdee","html_url":"https://github.com/tomdee","followers_url":"https://api.github.com/users/tomdee/followers","following_url":"https://api.github.com/users/tomdee/following{/other_user}","gists_url":"https://api.github.com/users/tomdee/gists{/gist_id}","starred_url":"https://api.github.com/users/tomdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomdee/subscriptions","organizations_url":"https://api.github.com/users/tomdee/orgs","repos_url":"https://api.github.com/users/tomdee/repos","events_url":"https://api.github.com/users/tomdee/events{/privacy}","received_events_url":"https://api.github.com/users/tomdee/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2016-06-14T00:29:43Z","updated_at":"2016-08-24T16:17:06Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/coreos/flannel/pulls/483/commits","review_comments_url":"https://api.github.com/repos/coreos/flannel/pulls/483/comments","review_comment_url":"https://api.github.com/repos/coreos/flannel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/flannel/issues/483/comments","statuses_url":"https://api.github.com/repos/coreos/flannel/statuses/5df964289f6c10f518d05c4d844c779e6edd3c5b","head":{"label":"mikedanese:kube-subnet-manager","ref":"kube-subnet-manager","sha":"5df964289f6c10f518d05c4d844c779e6edd3c5b","user":{"login":"mikedanese","id":1787169,"avatar_url":"https://avatars.githubusercontent.com/u/1787169?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedanese","html_url":"https://github.com/mikedanese","followers_url":"https://api.github.com/users/mikedanese/followers","following_url":"https://api.github.com/users/mikedanese/following{/other_user}","gists_url":"https://api.github.com/users/mikedanese/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedanese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedanese/subscriptions","organizations_url":"https://api.github.com/users/mikedanese/orgs","repos_url":"https://api.github.com/users/mikedanese/repos","events_url":"https://api.github.com/users/mikedanese/events{/privacy}","received_events_url":"https://api.github.com/users/mikedanese/received_events","type":"User","site_admin":false},"repo":{"id":64959321,"name":"flannel","full_name":"mikedanese/flannel","owner":{"login":"mikedanese","id":1787169,"avatar_url":"https://avatars.githubusercontent.com/u/1787169?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedanese","html_url":"https://github.com/mikedanese","followers_url":"https://api.github.com/users/mikedanese/followers","following_url":"https://api.github.com/users/mikedanese/following{/other_user}","gists_url":"https://api.github.com/users/mikedanese/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedanese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedanese/subscriptions","organizations_url":"https://api.github.com/users/mikedanese/orgs","repos_url":"https://api.github.com/users/mikedanese/repos","events_url":"https://api.github.com/users/mikedanese/events{/privacy}","received_events_url":"https://api.github.com/users/mikedanese/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedanese/flannel","description":"flannel is an etcd backed network fabric for containers","fork":true,"url":"https://api.github.com/repos/mikedanese/flannel","forks_url":"https://api.github.com/repos/mikedanese/flannel/forks","keys_url":"https://api.github.com/repos/mikedanese/flannel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedanese/flannel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedanese/flannel/teams","hooks_url":"https://api.github.com/repos/mikedanese/flannel/hooks","issue_events_url":"https://api.github.com/repos/mikedanese/flannel/issues/events{/number}","events_url":"https://api.github.com/repos/mikedanese/flannel/events","assignees_url":"https://api.github.com/repos/mikedanese/flannel/assignees{/user}","branches_url":"https://api.github.com/repos/mikedanese/flannel/branches{/branch}","tags_url":"https://api.github.com/repos/mikedanese/flannel/tags","blobs_url":"https://api.github.com/repos/mikedanese/flannel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedanese/flannel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedanese/flannel/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedanese/flannel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedanese/flannel/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedanese/flannel/languages","stargazers_url":"https://api.github.com/repos/mikedanese/flannel/stargazers","contributors_url":"https://api.github.com/repos/mikedanese/flannel/contributors","subscribers_url":"https://api.github.com/repos/mikedanese/flannel/subscribers","subscription_url":"https://api.github.com/repos/mikedanese/flannel/subscription","commits_url":"https://api.github.com/repos/mikedanese/flannel/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedanese/flannel/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedanese/flannel/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedanese/flannel/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedanese/flannel/contents/{+path}","compare_url":"https://api.github.com/repos/mikedanese/flannel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedanese/flannel/merges","archive_url":"https://api.github.com/repos/mikedanese/flannel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedanese/flannel/downloads","issues_url":"https://api.github.com/repos/mikedanese/flannel/issues{/number}","pulls_url":"https://api.github.com/repos/mikedanese/flannel/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedanese/flannel/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedanese/flannel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedanese/flannel/labels{/name}","releases_url":"https://api.github.com/repos/mikedanese/flannel/releases{/id}","deployments_url":"https://api.github.com/repos/mikedanese/flannel/deployments","created_at":"2016-08-04T18:49:02Z","updated_at":"2016-08-04T18:49:03Z","pushed_at":"2016-09-07T20:31:39Z","git_url":"git://github.com/mikedanese/flannel.git","ssh_url":"git@github.com:mikedanese/flannel.git","clone_url":"https://github.com/mikedanese/flannel.git","svn_url":"https://github.com/mikedanese/flannel","homepage":"","size":26473,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"coreos:master","ref":"master","sha":"7b71ca3781ee8a73062c007c84d512d644b7d4d9","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":21704134,"name":"flannel","full_name":"coreos/flannel","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/flannel","description":"flannel is an etcd backed network fabric for containers","fork":false,"url":"https://api.github.com/repos/coreos/flannel","forks_url":"https://api.github.com/repos/coreos/flannel/forks","keys_url":"https://api.github.com/repos/coreos/flannel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/flannel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/flannel/teams","hooks_url":"https://api.github.com/repos/coreos/flannel/hooks","issue_events_url":"https://api.github.com/repos/coreos/flannel/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/flannel/events","assignees_url":"https://api.github.com/repos/coreos/flannel/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/flannel/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/flannel/tags","blobs_url":"https://api.github.com/repos/coreos/flannel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/flannel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/flannel/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/flannel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/flannel/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/flannel/languages","stargazers_url":"https://api.github.com/repos/coreos/flannel/stargazers","contributors_url":"https://api.github.com/repos/coreos/flannel/contributors","subscribers_url":"https://api.github.com/repos/coreos/flannel/subscribers","subscription_url":"https://api.github.com/repos/coreos/flannel/subscription","commits_url":"https://api.github.com/repos/coreos/flannel/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/flannel/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/flannel/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/flannel/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/flannel/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/flannel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/flannel/merges","archive_url":"https://api.github.com/repos/coreos/flannel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/flannel/downloads","issues_url":"https://api.github.com/repos/coreos/flannel/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/flannel/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/flannel/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/flannel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/flannel/labels{/name}","releases_url":"https://api.github.com/repos/coreos/flannel/releases{/id}","deployments_url":"https://api.github.com/repos/coreos/flannel/deployments","created_at":"2014-07-10T17:45:29Z","updated_at":"2016-09-07T03:49:21Z","pushed_at":"2016-09-07T20:31:40Z","git_url":"git://github.com/coreos/flannel.git","ssh_url":"git@github.com:coreos/flannel.git","clone_url":"https://github.com/coreos/flannel.git","svn_url":"https://github.com/coreos/flannel","homepage":"","size":31592,"stargazers_count":1552,"watchers_count":1552,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":273,"mirror_url":null,"open_issues_count":87,"forks":273,"open_issues":87,"watchers":1552,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/flannel/pulls/483"},"html":{"href":"https://github.com/coreos/flannel/pull/483"},"issue":{"href":"https://api.github.com/repos/coreos/flannel/issues/483"},"comments":{"href":"https://api.github.com/repos/coreos/flannel/issues/483/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/flannel/pulls/483/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/flannel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/flannel/pulls/483/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/flannel/statuses/5df964289f6c10f518d05c4d844c779e6edd3c5b"}}}}
{"actor":{"display_login":"mikedanese"}}