{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/27995695","id":27995695,"diff_hunk":"@@ -0,0 +1,173 @@\n+/*\n+Copyright 2014 Google Inc. 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 volumemanager\n+\n+import (\n+\t\"fmt\"\n+\t\"sort\"\n+\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/api\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/client/cache\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/volume\"\n+)\n+\n+// persistentVolumeOrderedIndex is a cache.Store that keeps persistent volumes indexed by AccessModes and ordered by storage capacity.\n+type persistentVolumeOrderedIndex struct {\n+\tindexer cache.Indexer\n+}\n+\n+var _ = cache.Store(&persistentVolumeOrderedIndex{}) // persistentVolumeOrderedIndex is a Store\n+\n+func (pvstore *persistentVolumeOrderedIndex) Add(obj interface{}) error {\n+\treturn pvstore.indexer.Add(obj)\n+}\n+\n+func (pvstore *persistentVolumeOrderedIndex) Update(obj interface{}) error {\n+\treturn pvstore.indexer.Add(obj)\n+}\n+\n+func (pvstore *persistentVolumeOrderedIndex) Delete(obj interface{}) error {\n+\treturn pvstore.indexer.Delete(obj)\n+}\n+\n+func (pvstore *persistentVolumeOrderedIndex) List() []interface{} {\n+\treturn pvstore.indexer.List()\n+}\n+\n+func (pvstore *persistentVolumeOrderedIndex) Get(obj interface{}) (item interface{}, exists bool, err error) {\n+\treturn pvstore.indexer.Get(obj)\n+}\n+\n+func (pvstore *persistentVolumeOrderedIndex) GetByKey(key string) (item interface{}, exists bool, err error) {\n+\treturn pvstore.indexer.GetByKey(key)\n+}\n+\n+func (pvstore *persistentVolumeOrderedIndex) Replace(items []interface{}) error {\n+\treturn pvstore.indexer.Replace(items)\n+}\n+\n+func NewPersistentVolumeOrderedIndex() *persistentVolumeOrderedIndex {\n+\treturn &persistentVolumeOrderedIndex{\n+\t\tcache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{\"accessmodes\": AccessModesIndexFunc}),\n+\t}\n+}\n+\n+// AccessModesIndexFunc is an indexing function that returns a persistent volume's AccessModes as a string\n+func AccessModesIndexFunc(obj interface{}) (string, error) {\n+\tif pv, ok := obj.(*api.PersistentVolume); ok {\n+\t\tmodes := volume.GetAccessModesAsString(pv.Spec.AccessModes)\n+\t\treturn modes, nil\n+\t}\n+\treturn \"\", fmt.Errorf(\"object is not a persistent volume: %v\", obj)\n+}\n+\n+// List returns all volumes with the given set of AccessModeTypes *in order* of their storage capacity (low to high)\n+func (pvstore *persistentVolumeOrderedIndex) ListByAccessModes(modes []api.AccessModeType) ([]*api.PersistentVolume, error) {\n+\tpv := &api.PersistentVolume{\n+\t\tSpec: api.PersistentVolumeSpec{\n+\t\t\tAccessModes: modes,\n+\t\t},\n+\t}\n+\n+\tobjs, err := pvstore.indexer.Index(\"accessmodes\", pv)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\n+\tvolumes := make([]*api.PersistentVolume, len(objs))\n+\tfor i, obj := range objs {\n+\t\tvolumes[i] = obj.(*api.PersistentVolume)\n+\t}\n+\n+\tcomparator := persistentVolumeComparator{volumes}\n+\tsort.Sort(comparator)\n+\treturn comparator.volumes, nil\n+}\n+\n+// MatchPredicate is a function that indicates that a persistent volume matches another\n+type MatchPredicate func(compareThis, toThis *api.PersistentVolume) bool\n+\n+// Find returns the nearest PV from the ordered list or nil if a match is not found\n+func (pvstore *persistentVolumeOrderedIndex) Find(pv *api.PersistentVolume, matchPredicate MatchPredicate) (*api.PersistentVolume, error) {\n+\tvolumes, err := pvstore.ListByAccessModes(pv.Spec.AccessModes)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\ti := sort.Search(len(volumes), func(i int) bool { return matchPredicate(pv, volumes[i]) })\n+\tif i < len(volumes) {\n+\t\treturn volumes[i], nil\n+\t}\n+\treturn nil, nil\n+}\n+\n+// FindByStorageCapacity is a convenience method that calls Find w/ requisite MatchPredicate for storage\n+func (pvstore *persistentVolumeOrderedIndex) FindByAccessModesAndStorageCapacity(modes []api.AccessModeType, qty resource.Quantity) (*api.PersistentVolume, error) {\n+\tpv := &api.PersistentVolume{\n+\t\tSpec: api.PersistentVolumeSpec{\n+\t\t\tAccessModes: modes,\n+\t\t\tCapacity: api.ResourceList{\n+\t\t\t\tapi.ResourceName(api.ResourceStorage): qty,\n+\t\t\t},\n+\t\t},\n+\t}\n+\treturn pvstore.Find(pv, onlyUnboundedVolumes)\n+}\n+\n+// FindByClaim is a convenience method that finds a volume by the claim's AccessModes and requests for Storage\n+func (pvstore *persistentVolumeOrderedIndex) FindByClaim(claim *api.PersistentVolumeClaim) (*api.PersistentVolume, error) {\n+\treturn pvstore.FindByAccessModesAndStorageCapacity(claim.Spec.AccessModes, claim.Spec.Resources.Requests[api.ResourceName(api.ResourceStorage)])\n+}\n+\n+// persistentVolumeComparator is used to order volumes by ascending storage size\n+type persistentVolumeComparator struct {\n+\tvolumes []*api.PersistentVolume\n+}\n+\n+func (c persistentVolumeComparator) Less(i, j int) bool {\n+\treturn matchStorageCapacity(c.volumes[i], c.volumes[j])\n+}\n+\n+func (c persistentVolumeComparator) Swap(i, j int) {\n+\tc.volumes[i], c.volumes[j] = c.volumes[j], c.volumes[i]\n+}\n+\n+func (c persistentVolumeComparator) Len() int {\n+\treturn len(c.volumes)\n+}\n+\n+// matchStorageCapacity is a MatchPredicate used to sort and find volumes\n+func matchStorageCapacity(pvA, pvB *api.PersistentVolume) bool {\n+\t// skip already claimed volumes\n+\tif pvA.Spec.ClaimRef != nil {\n+\t\treturn false\n+\t}\n+\n+\taQty := pvA.Spec.Capacity[api.ResourceStorage]\n+\tbQty := pvB.Spec.Capacity[api.ResourceStorage]\n+\taSize := aQty.Value()\n+\tbSize := bQty.Value()\n+\treturn aSize <= bSize\n+}\n+\n+// onlyUnboundedVolumes is a MatchPredicate that filters bound volumes before comparing storage capacity\n+func onlyUnboundedVolumes(compareThis, toThis *api.PersistentVolume) bool {\n+\tif toThis.Spec.ClaimRef != nil || compareThis.Spec.ClaimRef != nil {\n+\t\treturn false\n+\t}\n+\treturn matchStorageCapacity(compareThis, toThis)","path":"pkg/volumemanager/types.go","position":172,"original_position":172,"commit_id":"6887558f6de07a1174f69623f4d37a74af3402cc","original_commit_id":"6887558f6de07a1174f69623f4d37a74af3402cc","user":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"body":"pattern-wise, this function is not self-describing, either rename to something like matchUnboundCapacity() or something.  Since it is only used in one place, you might just inline it.\r\n\r\n","created_at":"2015-04-08T18:00:22Z","updated_at":"2015-04-08T18:00:22Z","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/6105#discussion_r27995695","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/27995695"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/6105#discussion_r27995695"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105","id":32149153,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/6105","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/6105.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/6105.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6105","number":6105,"state":"open","locked":false,"title":"WIP: PersistentVolumeManager","user":{"login":"markturansky","id":8001968,"avatar_url":"https://avatars.githubusercontent.com/u/8001968?v=3","gravatar_id":"","url":"https://api.github.com/users/markturansky","html_url":"https://github.com/markturansky","followers_url":"https://api.github.com/users/markturansky/followers","following_url":"https://api.github.com/users/markturansky/following{/other_user}","gists_url":"https://api.github.com/users/markturansky/gists{/gist_id}","starred_url":"https://api.github.com/users/markturansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markturansky/subscriptions","organizations_url":"https://api.github.com/users/markturansky/orgs","repos_url":"https://api.github.com/users/markturansky/repos","events_url":"https://api.github.com/users/markturansky/events{/privacy}","received_events_url":"https://api.github.com/users/markturansky/received_events","type":"User","site_admin":false},"body":"Following #6002 (client).  \r\nFrom #5105. ","created_at":"2015-03-27T22:06:07Z","updated_at":"2015-04-08T18:00:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2bc11a1923a5a809dda4ce0cdbf38fa9d94675b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6105/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/6887558f6de07a1174f69623f4d37a74af3402cc","head":{"label":"markturansky:yoko_pv_mgr","ref":"yoko_pv_mgr","sha":"6887558f6de07a1174f69623f4d37a74af3402cc","user":{"login":"markturansky","id":8001968,"avatar_url":"https://avatars.githubusercontent.com/u/8001968?v=3","gravatar_id":"","url":"https://api.github.com/users/markturansky","html_url":"https://github.com/markturansky","followers_url":"https://api.github.com/users/markturansky/followers","following_url":"https://api.github.com/users/markturansky/following{/other_user}","gists_url":"https://api.github.com/users/markturansky/gists{/gist_id}","starred_url":"https://api.github.com/users/markturansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markturansky/subscriptions","organizations_url":"https://api.github.com/users/markturansky/orgs","repos_url":"https://api.github.com/users/markturansky/repos","events_url":"https://api.github.com/users/markturansky/events{/privacy}","received_events_url":"https://api.github.com/users/markturansky/received_events","type":"User","site_admin":false},"repo":{"id":24423869,"name":"kubernetes","full_name":"markturansky/kubernetes","owner":{"login":"markturansky","id":8001968,"avatar_url":"https://avatars.githubusercontent.com/u/8001968?v=3","gravatar_id":"","url":"https://api.github.com/users/markturansky","html_url":"https://github.com/markturansky","followers_url":"https://api.github.com/users/markturansky/followers","following_url":"https://api.github.com/users/markturansky/following{/other_user}","gists_url":"https://api.github.com/users/markturansky/gists{/gist_id}","starred_url":"https://api.github.com/users/markturansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markturansky/subscriptions","organizations_url":"https://api.github.com/users/markturansky/orgs","repos_url":"https://api.github.com/users/markturansky/repos","events_url":"https://api.github.com/users/markturansky/events{/privacy}","received_events_url":"https://api.github.com/users/markturansky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markturansky/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/markturansky/kubernetes","forks_url":"https://api.github.com/repos/markturansky/kubernetes/forks","keys_url":"https://api.github.com/repos/markturansky/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markturansky/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markturansky/kubernetes/teams","hooks_url":"https://api.github.com/repos/markturansky/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/markturansky/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/markturansky/kubernetes/events","assignees_url":"https://api.github.com/repos/markturansky/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/markturansky/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/markturansky/kubernetes/tags","blobs_url":"https://api.github.com/repos/markturansky/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markturansky/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markturansky/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/markturansky/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markturansky/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/markturansky/kubernetes/languages","stargazers_url":"https://api.github.com/repos/markturansky/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/markturansky/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/markturansky/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/markturansky/kubernetes/subscription","commits_url":"https://api.github.com/repos/markturansky/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/markturansky/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/markturansky/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/markturansky/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/markturansky/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/markturansky/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markturansky/kubernetes/merges","archive_url":"https://api.github.com/repos/markturansky/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markturansky/kubernetes/downloads","issues_url":"https://api.github.com/repos/markturansky/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/markturansky/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/markturansky/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/markturansky/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markturansky/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/markturansky/kubernetes/releases{/id}","created_at":"2014-09-24T16:55:04Z","updated_at":"2015-04-08T17:49:44Z","pushed_at":"2015-04-08T17:49:44Z","git_url":"git://github.com/markturansky/kubernetes.git","ssh_url":"git@github.com:markturansky/kubernetes.git","clone_url":"https://github.com/markturansky/kubernetes.git","svn_url":"https://github.com/markturansky/kubernetes","homepage":null,"size":45258,"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":"GoogleCloudPlatform:master","ref":"master","sha":"3cf04a66fb377c4e9ec6f46be08db6d2e3c539e6","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"GoogleCloudPlatform/kubernetes","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes","description":"Container Cluster Manager from Google","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/releases{/id}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-04-08T16:31:16Z","pushed_at":"2015-04-08T17:52:19Z","git_url":"git://github.com/GoogleCloudPlatform/kubernetes.git","ssh_url":"git@github.com:GoogleCloudPlatform/kubernetes.git","clone_url":"https://github.com/GoogleCloudPlatform/kubernetes.git","svn_url":"https://github.com/GoogleCloudPlatform/kubernetes","homepage":"http://kubernetes.io","size":136093,"stargazers_count":6997,"watchers_count":6997,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1356,"mirror_url":null,"open_issues_count":868,"forks":1356,"open_issues":868,"watchers":6997,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/6105"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6105"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6105/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/6105/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/6887558f6de07a1174f69623f4d37a74af3402cc"}}}}