{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/40730290","id":40730290,"diff_hunk":"@@ -0,0 +1,214 @@\n+/*\n+Copyright 2015 The Kubernetes Authors All rights reserved.\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 flocker\n+\n+import (\n+\t\"fmt\"\n+\t\"path\"\n+\t\"strconv\"\n+\t\"time\"\n+\n+\tflockerClient \"github.com/ClusterHQ/flocker-go\"\n+\t\"k8s.io/kubernetes/pkg/api\"\n+\t\"k8s.io/kubernetes/pkg/types\"\n+\t\"k8s.io/kubernetes/pkg/util\"\n+\t\"k8s.io/kubernetes/pkg/util/exec\"\n+\t\"k8s.io/kubernetes/pkg/util/mount\"\n+\t\"k8s.io/kubernetes/pkg/volume\"\n+\tvolumeutil \"k8s.io/kubernetes/pkg/volume/util\"\n+)\n+\n+const (\n+\tflockerPluginName = \"kubernetes.io/flocker\"\n+\n+\tdefaultHost           = \"localhost\"\n+\tdefaultPort           = 4523\n+\tdefaultCACertFile     = \"/etc/flocker/cluster.crt\"\n+\tdefaultClientKeyFile  = \"/etc/flocker/apiuser.key\"\n+\tdefaultClientCertFile = \"/etc/flocker/apiuser.crt\"\n+\n+\ttimeoutWaitingForVolume = 2 * time.Minute\n+\ttickerWaitingForVolume  = 5 * time.Second\n+)\n+\n+func ProbeVolumePlugins() []volume.VolumePlugin {\n+\treturn []volume.VolumePlugin{&flockerPlugin{}}\n+}\n+\n+type flockerPlugin struct {\n+\thost volume.VolumeHost\n+}\n+\n+type flocker struct {\n+\tdatasetName string\n+\tpath        string\n+\tpod         *api.Pod\n+\tmounter     mount.Interface\n+\tplugin      *flockerPlugin\n+}\n+\n+func (p *flockerPlugin) Init(host volume.VolumeHost) {\n+\tp.host = host\n+}\n+\n+func (p flockerPlugin) Name() string {\n+\treturn flockerPluginName\n+}\n+\n+func (p flockerPlugin) CanSupport(spec *volume.Spec) bool {\n+\treturn (spec.PersistentVolume != nil && spec.PersistentVolume.Spec.Flocker != nil) ||\n+\t\t(spec.Volume != nil && spec.Volume.Flocker != nil)\n+}\n+\n+func (p *flockerPlugin) getFlockerVolumeSource(spec *volume.Spec) (*api.FlockerVolumeSource, bool) {\n+\t// AFAIK this will always be r/w, but perhaps for the future it will be needed\n+\treadOnly := false\n+\n+\tif spec.Volume != nil && spec.Volume.Flocker != nil {\n+\t\treturn spec.Volume.Flocker, readOnly\n+\t}\n+\treturn spec.PersistentVolume.Spec.Flocker, readOnly\n+}\n+\n+func (p *flockerPlugin) NewBuilder(spec *volume.Spec, pod *api.Pod, opts volume.VolumeOptions) (volume.Builder, error) {\n+\tsource, readOnly := p.getFlockerVolumeSource(spec)\n+\tbuilder := flockerBuilder{\n+\t\tflocker: &flocker{\n+\t\t\tdatasetName: source.DatasetName,\n+\t\t\tpod:         pod,\n+\t\t\tmounter:     p.host.GetMounter(),\n+\t\t\tplugin:      p,\n+\t\t},\n+\t\texe:      exec.New(),\n+\t\topts:     opts,\n+\t\treadOnly: readOnly,\n+\t}\n+\treturn &builder, nil\n+}\n+\n+func (p *flockerPlugin) NewCleaner(datasetName string, podUID types.UID) (volume.Cleaner, error) {\n+\t// Flocker agent will take care of this, there is nothing we can do here\n+\treturn nil, nil\n+}\n+\n+type flockerBuilder struct {\n+\t*flocker\n+\texe      exec.Interface\n+\topts     volume.VolumeOptions\n+\treadOnly bool\n+}\n+\n+func (b flockerBuilder) GetPath() string {\n+\treturn b.flocker.path\n+}\n+\n+func (b flockerBuilder) SetUp() error {\n+\treturn b.SetUpAt(b.flocker.datasetName)\n+}\n+\n+// newFlockerClient uses environment variables and pod attributes to return a\n+// flocker client capable of talking with the Flocker control service.\n+func (b flockerBuilder) newFlockerClient() (*flockerClient.Client, error) {\n+\thost := getenvOrFallback(\"FLOCKER_CONTROL_SERVICE_HOST\", defaultHost)\n+\tportConfig := getenvOrFallback(\"FLOCKER_CONTROL_SERVICE_PORT\", strconv.Itoa(defaultPort))\n+\tport, err := strconv.Atoi(portConfig)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\tcaCertPath := getenvOrFallback(\"FLOCKER_CONTROL_SERVICE_CA_FILE\", defaultCACertFile)\n+\tkeyPath := getenvOrFallback(\"FLOCKER_CONTROL_SERVICE_CLIENT_KEY_FILE\", defaultClientKeyFile)\n+\tcertPath := getenvOrFallback(\"FLOCKER_CONTROL_SERVICE_CLIENT_CERT_FILE\", defaultClientCertFile)\n+\n+\tc, err := flockerClient.NewClient(host, port, b.flocker.pod.Status.HostIP, caCertPath, keyPath, certPath)\n+\treturn c, err\n+}\n+\n+func (b *flockerBuilder) getMetaDir() string {\n+\treturn path.Join(b.plugin.host.GetPodPluginDir(b.flocker.pod.UID, util.EscapeQualifiedNameForDisk(flockerPluginName)), b.datasetName)\n+}\n+\n+/*\n+SetUpAt will setup a Flocker volume following this flow of calls to the Flocker\n+control service:\n+\n+1. Get the dataset id for the given volume name/dir\n+2. It should already be there, if it's not the user needs to manually create it\n+3. Check the current Primary UUID\n+4. If it doesn't match with the Primary UUID that we got on 2, then we will\n+   need to update the Primary UUID for this volume.\n+5. Wait until the Primary UUID was updated or timeout.\n+*/\n+func (b flockerBuilder) SetUpAt(dir string) error {\n+\tif volumeutil.IsReady(b.getMetaDir()) {\n+\t\treturn nil\n+\t}\n+\n+\tc, err := b.newFlockerClient()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tdatasetID, err := c.QueryDatasetIDFromName(dir)\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\ts, err := c.GetDatasetState(datasetID)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"The volume '%s' is not available in Flocker. You need to create this manually with Flocker CLI before using it.\", dir)\n+\t}\n+\n+\tprimaryUUID, err := c.LookupPrimaryUUID()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tif s.Primary != primaryUUID {\n+\t\t// We need to update the primary and wait for it to be ready\n+\t\terr = c.UpdateDatasetPrimary(datasetID, primaryUUID)\n+\t\tif err != nil {\n+\t\t\treturn err\n+\t\t}\n+\n+\t\ttimeoutChan := time.NewTimer(timeoutWaitingForVolume).C\n+\t\ttickChan := time.NewTicker(tickerWaitingForVolume).C\n+\n+\t\tfor {\n+\t\t\tif s, err = c.GetDatasetState(datasetID); err == nil && s.Primary == primaryUUID {\n+\t\t\t\tb.flocker.path = s.Path\n+\t\t\t\tvolumeutil.SetReady(b.getMetaDir())\n+\t\t\t\treturn nil\n+\t\t\t}\n+\n+\t\t\tselect {\n+\t\t\tcase <-timeoutChan:\n+\t\t\t\treturn err","path":"pkg/volume/flocker/plugin.go","position":199,"original_position":199,"commit_id":"cc7707133d32650ac850ed289fcea58c8bfb8436","original_commit_id":"cc7707133d32650ac850ed289fcea58c8bfb8436","user":{"login":"saad-ali","id":10052848,"avatar_url":"https://avatars.githubusercontent.com/u/10052848?v=3","gravatar_id":"","url":"https://api.github.com/users/saad-ali","html_url":"https://github.com/saad-ali","followers_url":"https://api.github.com/users/saad-ali/followers","following_url":"https://api.github.com/users/saad-ali/following{/other_user}","gists_url":"https://api.github.com/users/saad-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/saad-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saad-ali/subscriptions","organizations_url":"https://api.github.com/users/saad-ali/orgs","repos_url":"https://api.github.com/users/saad-ali/repos","events_url":"https://api.github.com/users/saad-ali/events{/privacy}","received_events_url":"https://api.github.com/users/saad-ali/received_events","type":"User","site_admin":false},"body":"There is a possibility that `err` could be nil here right?","created_at":"2015-09-29T21:11:46Z","updated_at":"2015-09-29T21:11:46Z","html_url":"https://github.com/kubernetes/kubernetes/pull/14328#discussion_r40730290","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/40730290"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/14328#discussion_r40730290"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328","id":45618464,"html_url":"https://github.com/kubernetes/kubernetes/pull/14328","diff_url":"https://github.com/kubernetes/kubernetes/pull/14328.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/14328.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14328","number":14328,"state":"open","locked":false,"title":"Add flocker volume plugin","user":{"login":"agonzalezro","id":205176,"avatar_url":"https://avatars.githubusercontent.com/u/205176?v=3","gravatar_id":"","url":"https://api.github.com/users/agonzalezro","html_url":"https://github.com/agonzalezro","followers_url":"https://api.github.com/users/agonzalezro/followers","following_url":"https://api.github.com/users/agonzalezro/following{/other_user}","gists_url":"https://api.github.com/users/agonzalezro/gists{/gist_id}","starred_url":"https://api.github.com/users/agonzalezro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agonzalezro/subscriptions","organizations_url":"https://api.github.com/users/agonzalezro/orgs","repos_url":"https://api.github.com/users/agonzalezro/repos","events_url":"https://api.github.com/users/agonzalezro/events{/privacy}","received_events_url":"https://api.github.com/users/agonzalezro/received_events","type":"User","site_admin":false},"body":"Flocker [1] is an open-source container data volume manager for\r\nDockerized applications.\r\n\r\nThis PR adds a volume plugin for Flocker.\r\nThe plugin interfaces the Flocker Control Service REST API [2] to\r\nrequest volume creation and attachment.\r\n\r\nEach kubelet host should run Flocker agents (Container Agent and Dataset\r\nAgent).\r\n\r\nThe kubelet will also require environment variables that contain the\r\nhost and port of the Flocker Control Service. (see Flocker architecture\r\n[3] for more).\r\n\r\n- `FLOCKER_CONTROL_SERVICE_HOST`\r\n- `FLOCKER_CONTROL_SERVICE_PORT`\r\n\r\nThe contribution introduces a new 'flocker' volume type to the API with\r\nfields:\r\n\r\n- `datasetName`: which indicates the name of the dataset in Flocker\r\n  added to metadata;\r\n- `size`: a human-readable number that indicates the maximum size of the\r\n  requested dataset.\r\n\r\nFull documentation (including getting started guides) and e2e tests to\r\nfollow.\r\n\r\nAs the plugin is code complete, we're hoping to make version 1.1.\r\n\r\n[1] https://clusterhq.com/flocker/introduction/\r\n[2] https://docs.clusterhq.com/en/1.3.1/reference/api.html\r\n[3] https://docs.clusterhq.com/en/1.3.1/concepts/architecture.html","created_at":"2015-09-22T01:06:27Z","updated_at":"2015-09-29T21:11:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b77d705737f4edd7eee3bd6f12259e15c0dcd251","assignee":{"login":"saad-ali","id":10052848,"avatar_url":"https://avatars.githubusercontent.com/u/10052848?v=3","gravatar_id":"","url":"https://api.github.com/users/saad-ali","html_url":"https://github.com/saad-ali","followers_url":"https://api.github.com/users/saad-ali/followers","following_url":"https://api.github.com/users/saad-ali/following{/other_user}","gists_url":"https://api.github.com/users/saad-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/saad-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saad-ali/subscriptions","organizations_url":"https://api.github.com/users/saad-ali/orgs","repos_url":"https://api.github.com/users/saad-ali/repos","events_url":"https://api.github.com/users/saad-ali/events{/privacy}","received_events_url":"https://api.github.com/users/saad-ali/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14328/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/cc7707133d32650ac850ed289fcea58c8bfb8436","head":{"label":"agonzalezro:flocker","ref":"flocker","sha":"cc7707133d32650ac850ed289fcea58c8bfb8436","user":{"login":"agonzalezro","id":205176,"avatar_url":"https://avatars.githubusercontent.com/u/205176?v=3","gravatar_id":"","url":"https://api.github.com/users/agonzalezro","html_url":"https://github.com/agonzalezro","followers_url":"https://api.github.com/users/agonzalezro/followers","following_url":"https://api.github.com/users/agonzalezro/following{/other_user}","gists_url":"https://api.github.com/users/agonzalezro/gists{/gist_id}","starred_url":"https://api.github.com/users/agonzalezro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agonzalezro/subscriptions","organizations_url":"https://api.github.com/users/agonzalezro/orgs","repos_url":"https://api.github.com/users/agonzalezro/repos","events_url":"https://api.github.com/users/agonzalezro/events{/privacy}","received_events_url":"https://api.github.com/users/agonzalezro/received_events","type":"User","site_admin":false},"repo":{"id":42435566,"name":"kubernetes","full_name":"agonzalezro/kubernetes","owner":{"login":"agonzalezro","id":205176,"avatar_url":"https://avatars.githubusercontent.com/u/205176?v=3","gravatar_id":"","url":"https://api.github.com/users/agonzalezro","html_url":"https://github.com/agonzalezro","followers_url":"https://api.github.com/users/agonzalezro/followers","following_url":"https://api.github.com/users/agonzalezro/following{/other_user}","gists_url":"https://api.github.com/users/agonzalezro/gists{/gist_id}","starred_url":"https://api.github.com/users/agonzalezro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agonzalezro/subscriptions","organizations_url":"https://api.github.com/users/agonzalezro/orgs","repos_url":"https://api.github.com/users/agonzalezro/repos","events_url":"https://api.github.com/users/agonzalezro/events{/privacy}","received_events_url":"https://api.github.com/users/agonzalezro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agonzalezro/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/agonzalezro/kubernetes","forks_url":"https://api.github.com/repos/agonzalezro/kubernetes/forks","keys_url":"https://api.github.com/repos/agonzalezro/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agonzalezro/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agonzalezro/kubernetes/teams","hooks_url":"https://api.github.com/repos/agonzalezro/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/agonzalezro/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/agonzalezro/kubernetes/events","assignees_url":"https://api.github.com/repos/agonzalezro/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/agonzalezro/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/agonzalezro/kubernetes/tags","blobs_url":"https://api.github.com/repos/agonzalezro/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agonzalezro/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agonzalezro/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/agonzalezro/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agonzalezro/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/agonzalezro/kubernetes/languages","stargazers_url":"https://api.github.com/repos/agonzalezro/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/agonzalezro/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/agonzalezro/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/agonzalezro/kubernetes/subscription","commits_url":"https://api.github.com/repos/agonzalezro/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/agonzalezro/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/agonzalezro/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/agonzalezro/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/agonzalezro/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/agonzalezro/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agonzalezro/kubernetes/merges","archive_url":"https://api.github.com/repos/agonzalezro/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agonzalezro/kubernetes/downloads","issues_url":"https://api.github.com/repos/agonzalezro/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/agonzalezro/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/agonzalezro/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/agonzalezro/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agonzalezro/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/agonzalezro/kubernetes/releases{/id}","created_at":"2015-09-14T08:06:38Z","updated_at":"2015-09-14T08:06:45Z","pushed_at":"2015-09-29T20:54:50Z","git_url":"git://github.com/agonzalezro/kubernetes.git","ssh_url":"git@github.com:agonzalezro/kubernetes.git","clone_url":"https://github.com/agonzalezro/kubernetes.git","svn_url":"https://github.com/agonzalezro/kubernetes","homepage":"http://kubernetes.io","size":112052,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"26c51881ca89e13e4fc2682aee1a0545915c291e","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","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://avatars.githubusercontent.com/u/13629408?v=3","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":"Container Cluster Manager from Google","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}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-09-29T18:54:53Z","pushed_at":"2015-09-29T21:02:00Z","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":440764,"stargazers_count":10491,"watchers_count":10491,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2620,"mirror_url":null,"open_issues_count":1983,"forks":2620,"open_issues":1983,"watchers":10491,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/14328"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/14328"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/14328/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14328/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/cc7707133d32650ac850ed289fcea58c8bfb8436"}}}}