{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/39461262","id":39461262,"diff_hunk":"@@ -0,0 +1,409 @@\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 cmd\n+\n+import (\n+\t\"bufio\"\n+\t\"bytes\"\n+\t\"encoding/json\"\n+\t\"fmt\"\n+\t\"io\"\n+\t\"os\"\n+\t\"strings\"\n+\n+\t\"k8s.io/kubernetes/pkg/api\"\n+\t\"k8s.io/kubernetes/pkg/api/errors\"\n+\tclient \"k8s.io/kubernetes/pkg/client/unversioned\"\n+\t\"k8s.io/kubernetes/pkg/kubectl\"\n+\tcmdutil \"k8s.io/kubernetes/pkg/kubectl/cmd/util\"\n+\t\"k8s.io/kubernetes/pkg/kubectl/cmd/util/editor\"\n+\t\"k8s.io/kubernetes/pkg/kubectl/cmd/util/jsonmerge\"\n+\t\"k8s.io/kubernetes/pkg/kubectl/resource\"\n+\t\"k8s.io/kubernetes/pkg/util/strategicpatch\"\n+\t\"k8s.io/kubernetes/pkg/util/yaml\"\n+\n+\t\"github.com/golang/glog\"\n+\t\"github.com/spf13/cobra\"\n+)\n+\n+const (\n+\teditLong = `Edit a resource from the default editor.\n+\n+The edit command allows you to directly edit any API resource you can retrieve via the\n+command line tools. It will open the editor defined by your KUBE_EDITOR, GIT_EDITOR,\n+or EDITOR environment variables, or fall back to 'vi'. You can edit multiple objects,\n+although changes are applied one at a time. The command accepts filenames as well as\n+command line arguments, although the files you point to must be previously saved\n+versions of resources.\n+\n+The files to edit will be output in the default API version, or a version specified\n+by --output-version. The default format is YAML - if you would like to edit in JSON\n+pass -o json.\n+\n+In the event an error occurs while updating, a temporary file will be created on disk\n+that contains your unapplied changes. The most common error when updating a resource\n+is another editor changing the resource on the server. When this occurs, you will have\n+to apply your changes to the newer version of the resource, or update your temporary\n+saved copy to include the latest resource version.`\n+\n+\teditExample = `  # Edit the service named 'docker-registry':\n+  $ kubectl edit svc/docker-registry\n+\n+  # Use an alternative editor\n+  $ KUBE_EDITOR=\"nano\" kubectl edit svc/docker-registry\n+\n+  # Edit the service 'docker-registry' in JSON using the v1 API format:\n+  $ kubectl edit svc/docker-registry --output-version=v1 -o json`\n+)\n+\n+var errExit = fmt.Errorf(\"exit directly\")\n+\n+func NewCmdEdit(f *cmdutil.Factory, out io.Writer) *cobra.Command {\n+\tfilenames := []string{}\n+\tcmd := &cobra.Command{\n+\t\tUse:     \"edit (RESOURCE/NAME | -f FILENAME)\",\n+\t\tShort:   \"Edit a resource on the server\",\n+\t\tLong:    editLong,\n+\t\tExample: fmt.Sprintf(editExample),\n+\t\tRun: func(cmd *cobra.Command, args []string) {\n+\t\t\terr := RunEdit(f, out, cmd, args, filenames)\n+\t\t\tif err == errExit {\n+\t\t\t\tos.Exit(1)\n+\t\t\t}\n+\t\t\tcmdutil.CheckErr(err)\n+\t\t},\n+\t}\n+\tusage := \"Filename, directory, or URL to file to use to edit the resource\"\n+\tkubectl.AddJsonFilenameFlag(cmd, &filenames, usage)\n+\tcmd.Flags().StringP(\"output\", \"o\", \"yaml\", \"Output format. One of: yaml|json.\")\n+\tcmd.Flags().String(\"output-version\", \"\", \"Output the formatted object with the given version (default api-version).\")\n+\treturn cmd\n+}\n+\n+func RunEdit(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, filenames []string) error {\n+\tvar printer kubectl.ResourcePrinter\n+\tvar ext string\n+\tswitch format := cmdutil.GetFlagString(cmd, \"output\"); format {\n+\tcase \"json\":\n+\t\tprinter = &kubectl.JSONPrinter{}\n+\t\text = \".json\"\n+\tcase \"yaml\":\n+\t\tprinter = &kubectl.YAMLPrinter{}\n+\t\text = \".yaml\"\n+\tdefault:\n+\t\treturn cmdutil.UsageError(cmd, \"The flag 'output' must be one of yaml|json\")\n+\t}\n+\n+\tcmdNamespace, enforceNamespace, err := f.DefaultNamespace()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tmapper, typer := f.Object()\n+\trmap := &resource.Mapper{\n+\t\tObjectTyper:  typer,\n+\t\tRESTMapper:   mapper,\n+\t\tClientMapper: f.ClientMapperForCommand(),\n+\t}\n+\n+\tr := resource.NewBuilder(mapper, typer, f.ClientMapperForCommand()).\n+\t\tNamespaceParam(cmdNamespace).DefaultNamespace().\n+\t\tFilenameParam(enforceNamespace, filenames...).\n+\t\tResourceTypeOrNameArgs(true, args...).\n+\t\tLatest().\n+\t\tFlatten().\n+\t\tDo()\n+\terr = r.Err()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tinfos, err := r.Infos()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tclientConfig, err := f.ClientConfig()\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tdefaultVersion := cmdutil.OutputVersion(cmd, clientConfig.Version)\n+\tresults := editResults{}\n+\tfor {\n+\t\tobj, err := resource.AsVersionedObject(infos, false, defaultVersion)\n+\t\tif err != nil {\n+\t\t\treturn preservedFile(err, results.file, out)\n+\t\t}\n+\n+\t\t// TODO: add an annotating YAML printer that can print inline comments on each field,\n+\t\t//   including descriptions or validation errors\n+\n+\t\t// generate the file to edit\n+\t\tbuf := &bytes.Buffer{}\n+\t\tif err := results.header.WriteTo(buf); err != nil {\n+\t\t\treturn preservedFile(err, results.file, out)\n+\t\t}\n+\t\tif err := printer.PrintObj(obj, buf); err != nil {\n+\t\t\treturn preservedFile(err, results.file, out)\n+\t\t}\n+\t\toriginal := buf.Bytes()\n+\n+\t\t// launch the editor\n+\t\tedit := editor.NewDefaultEditor()\n+\t\tedited, file, err := edit.LaunchTempFile(\"kubectl-edit-\", ext, buf)\n+\t\tif err != nil {\n+\t\t\treturn preservedFile(err, results.file, out)\n+\t\t}\n+\n+\t\t// cleanup any file from the previous pass\n+\t\tif len(results.file) > 0 {\n+\t\t\tos.Remove(results.file)\n+\t\t}\n+\n+\t\tglog.V(4).Infof(\"User edited:\\n%s\", string(edited))\n+\t\tfmt.Printf(\"User edited:\\n%s\", string(edited))\n+\t\tlines, err := hasLines(bytes.NewBuffer(edited))\n+\t\tif err != nil {\n+\t\t\treturn preservedFile(err, file, out)\n+\t\t}\n+\t\tif bytes.Equal(original, edited) {\n+\t\t\tif len(results.edit) > 0 {\n+\t\t\t\tpreservedFile(nil, file, out)\n+\t\t\t} else {\n+\t\t\t\tos.Remove(file)\n+\t\t\t}\n+\t\t\tfmt.Fprintln(out, \"Edit cancelled, no changes made.\")\n+\t\t\treturn nil\n+\t\t}\n+\t\tif !lines {\n+\t\t\tif len(results.edit) > 0 {\n+\t\t\t\tpreservedFile(nil, file, out)\n+\t\t\t} else {\n+\t\t\t\tos.Remove(file)\n+\t\t\t}\n+\t\t\tfmt.Fprintln(out, \"Edit cancelled, saved file was empty.\")\n+\t\t\treturn nil\n+\t\t}\n+\n+\t\tresults = editResults{\n+\t\t\tfile: file,\n+\t\t}\n+\n+\t\t// parse the edited file\n+\t\tupdates, err := rmap.InfoForData(edited, \"edited-file\")\n+\t\tif err != nil {\n+\t\t\treturn preservedFile(err, file, out)\n+\t\t}\n+\n+\t\tvisitor := resource.NewFlattenListVisitor(updates, rmap)\n+\n+\t\t// need to make sure the original namespace wasn't changed while editing\n+\t\tif err = visitor.Visit(resource.RequireNamespace(cmdNamespace)); err != nil {\n+\t\t\treturn preservedFile(err, file, out)\n+\t\t}\n+\n+\t\t// use strategic merge to create a patch\n+\t\toriginalJS, err := yaml.ToJSON(original)\n+\t\tif err != nil {\n+\t\t\treturn preservedFile(err, file, out)\n+\t\t}\n+\t\teditedJS, err := yaml.ToJSON(edited)\n+\t\tif err != nil {\n+\t\t\treturn preservedFile(err, file, out)\n+\t\t}\n+\t\tpatch, err := strategicpatch.CreateStrategicMergePatch(originalJS, editedJS, obj)\n+\t\t// TODO: change all jsonmerge to strategicpatch\n+\t\t// for checking preconditions\n+\t\tpreconditions := []jsonmerge.PreconditionFunc{}\n+\t\tif err != nil {\n+\t\t\tglog.V(4).Infof(\"Unable to calculate diff, no merge is possible: %v\", err)\n+\t\t\treturn preservedFile(err, file, out)\n+\t\t} else {\n+\t\t\tpreconditions = append(preconditions, jsonmerge.RequireKeyUnchanged(\"apiVersion\"))\n+\t\t\tpreconditions = append(preconditions, jsonmerge.RequireKeyUnchanged(\"kind\"))\n+\t\t\tpreconditions = append(preconditions, jsonmerge.RequireMetadataKeyUnchanged(\"name\"))\n+\t\t\tresults.version = defaultVersion\n+\t\t}\n+\n+\t\t//TODO: need a more strict check for lists\n+\t\tif hold, msg := TestPreconditionsHold(patch, preconditions); !hold {\n+\t\t\tfmt.Fprintf(out, \"error: %s\", msg)\n+\t\t\treturn preservedFile(nil, file, out)\n+\t\t}\n+\n+\t\terr = visitor.Visit(func(info *resource.Info, err error) error {\n+\t\t\tpatch, err = strategicpatch.StrategicMergePatch(originalJS, patch, obj)\n+//\t\t\tpatched, err := resource.NewHelper(info.Client, info.Mapping).Patch(info.Namespace, info.Name, api.StrategicMergePatchType, patch)","path":"pkg/kubectl/cmd/edit.go","position":251,"original_position":251,"commit_id":"0c8ae86b407dbe454c9561b25ac16964e59656e7","original_commit_id":"0c8ae86b407dbe454c9561b25ac16964e59656e7","user":{"login":"jlowdermilk","id":2101035,"avatar_url":"https://avatars.githubusercontent.com/u/2101035?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowdermilk","html_url":"https://github.com/jlowdermilk","followers_url":"https://api.github.com/users/jlowdermilk/followers","following_url":"https://api.github.com/users/jlowdermilk/following{/other_user}","gists_url":"https://api.github.com/users/jlowdermilk/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowdermilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowdermilk/subscriptions","organizations_url":"https://api.github.com/users/jlowdermilk/orgs","repos_url":"https://api.github.com/users/jlowdermilk/repos","events_url":"https://api.github.com/users/jlowdermilk/events{/privacy}","received_events_url":"https://api.github.com/users/jlowdermilk/received_events","type":"User","site_admin":false},"body":"Remove this?","created_at":"2015-09-14T23:50:23Z","updated_at":"2015-09-14T23:50:23Z","html_url":"https://github.com/kubernetes/kubernetes/pull/13604#discussion_r39461262","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/39461262"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/13604#discussion_r39461262"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604","id":44271659,"html_url":"https://github.com/kubernetes/kubernetes/pull/13604","diff_url":"https://github.com/kubernetes/kubernetes/pull/13604.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/13604.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13604","number":13604,"state":"open","locked":false,"title":"pull \"kubectl edit\" from openshift upstream","user":{"login":"JanetKuo","id":4876867,"avatar_url":"https://avatars.githubusercontent.com/u/4876867?v=3","gravatar_id":"","url":"https://api.github.com/users/JanetKuo","html_url":"https://github.com/JanetKuo","followers_url":"https://api.github.com/users/JanetKuo/followers","following_url":"https://api.github.com/users/JanetKuo/following{/other_user}","gists_url":"https://api.github.com/users/JanetKuo/gists{/gist_id}","starred_url":"https://api.github.com/users/JanetKuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanetKuo/subscriptions","organizations_url":"https://api.github.com/users/JanetKuo/orgs","repos_url":"https://api.github.com/users/JanetKuo/repos","events_url":"https://api.github.com/users/JanetKuo/events{/privacy}","received_events_url":"https://api.github.com/users/JanetKuo/received_events","type":"User","site_admin":false},"body":"Pull [kubectl edit](https://github.com/openshift/origin/blob/master/pkg/cmd/cli/cmd/edit.go) from openshift upstream and add a test for it in `test-cmd.sh`. \r\n\r\nFixes #8263\r\nRef #10502; depends on #13007 for strategic merge","created_at":"2015-09-04T23:58:51Z","updated_at":"2015-09-14T23:50:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a78a9491761204d387154428fb78844ce77a7f26","assignee":{"login":"jlowdermilk","id":2101035,"avatar_url":"https://avatars.githubusercontent.com/u/2101035?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowdermilk","html_url":"https://github.com/jlowdermilk","followers_url":"https://api.github.com/users/jlowdermilk/followers","following_url":"https://api.github.com/users/jlowdermilk/following{/other_user}","gists_url":"https://api.github.com/users/jlowdermilk/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowdermilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowdermilk/subscriptions","organizations_url":"https://api.github.com/users/jlowdermilk/orgs","repos_url":"https://api.github.com/users/jlowdermilk/repos","events_url":"https://api.github.com/users/jlowdermilk/events{/privacy}","received_events_url":"https://api.github.com/users/jlowdermilk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/13","html_url":"https://github.com/kubernetes/kubernetes/milestones/v1.1","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/13/labels","id":1220916,"number":13,"title":"v1.1","description":"Release 1.1.\r\n\r\nP1 features:\r\n* 250 nodes\r\n* kube-proxy perf. improvements (via IPTables)\r\n* Docker 1.8.x\r\n* Horizontal pod auto-scaling\r\n* Job Object\r\n* Schema validation in kubectl\r\n* Experimental API and API groups\r\n* Graceful pod termination\r\n","creator":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"open_issues":72,"closed_issues":56,"state":"open","created_at":"2015-07-22T19:17:12Z","updated_at":"2015-09-14T18:01:26Z","due_on":"2015-09-21T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13604/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/0c8ae86b407dbe454c9561b25ac16964e59656e7","head":{"label":"JanetKuo:kubectl-edit","ref":"kubectl-edit","sha":"0c8ae86b407dbe454c9561b25ac16964e59656e7","user":{"login":"JanetKuo","id":4876867,"avatar_url":"https://avatars.githubusercontent.com/u/4876867?v=3","gravatar_id":"","url":"https://api.github.com/users/JanetKuo","html_url":"https://github.com/JanetKuo","followers_url":"https://api.github.com/users/JanetKuo/followers","following_url":"https://api.github.com/users/JanetKuo/following{/other_user}","gists_url":"https://api.github.com/users/JanetKuo/gists{/gist_id}","starred_url":"https://api.github.com/users/JanetKuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanetKuo/subscriptions","organizations_url":"https://api.github.com/users/JanetKuo/orgs","repos_url":"https://api.github.com/users/JanetKuo/repos","events_url":"https://api.github.com/users/JanetKuo/events{/privacy}","received_events_url":"https://api.github.com/users/JanetKuo/received_events","type":"User","site_admin":false},"repo":{"id":37748937,"name":"kubernetes","full_name":"JanetKuo/kubernetes","owner":{"login":"JanetKuo","id":4876867,"avatar_url":"https://avatars.githubusercontent.com/u/4876867?v=3","gravatar_id":"","url":"https://api.github.com/users/JanetKuo","html_url":"https://github.com/JanetKuo","followers_url":"https://api.github.com/users/JanetKuo/followers","following_url":"https://api.github.com/users/JanetKuo/following{/other_user}","gists_url":"https://api.github.com/users/JanetKuo/gists{/gist_id}","starred_url":"https://api.github.com/users/JanetKuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanetKuo/subscriptions","organizations_url":"https://api.github.com/users/JanetKuo/orgs","repos_url":"https://api.github.com/users/JanetKuo/repos","events_url":"https://api.github.com/users/JanetKuo/events{/privacy}","received_events_url":"https://api.github.com/users/JanetKuo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JanetKuo/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/JanetKuo/kubernetes","forks_url":"https://api.github.com/repos/JanetKuo/kubernetes/forks","keys_url":"https://api.github.com/repos/JanetKuo/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JanetKuo/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JanetKuo/kubernetes/teams","hooks_url":"https://api.github.com/repos/JanetKuo/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/JanetKuo/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/JanetKuo/kubernetes/events","assignees_url":"https://api.github.com/repos/JanetKuo/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/JanetKuo/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/JanetKuo/kubernetes/tags","blobs_url":"https://api.github.com/repos/JanetKuo/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JanetKuo/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JanetKuo/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/JanetKuo/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JanetKuo/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/JanetKuo/kubernetes/languages","stargazers_url":"https://api.github.com/repos/JanetKuo/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/JanetKuo/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/JanetKuo/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/JanetKuo/kubernetes/subscription","commits_url":"https://api.github.com/repos/JanetKuo/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/JanetKuo/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/JanetKuo/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/JanetKuo/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/JanetKuo/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/JanetKuo/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JanetKuo/kubernetes/merges","archive_url":"https://api.github.com/repos/JanetKuo/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JanetKuo/kubernetes/downloads","issues_url":"https://api.github.com/repos/JanetKuo/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/JanetKuo/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/JanetKuo/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/JanetKuo/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JanetKuo/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/JanetKuo/kubernetes/releases{/id}","created_at":"2015-06-19T22:29:18Z","updated_at":"2015-06-19T22:29:25Z","pushed_at":"2015-09-14T23:46:53Z","git_url":"git://github.com/JanetKuo/kubernetes.git","ssh_url":"git@github.com:JanetKuo/kubernetes.git","clone_url":"https://github.com/JanetKuo/kubernetes.git","svn_url":"https://github.com/JanetKuo/kubernetes","homepage":"http://kubernetes.io","size":106996,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"db128ac0f7a0ffe9bd94c0910e6d288eda1bd601","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-14T23:07:09Z","pushed_at":"2015-09-14T23:44:40Z","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":408346,"stargazers_count":10227,"watchers_count":10227,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2526,"mirror_url":null,"open_issues_count":1766,"forks":2526,"open_issues":1766,"watchers":10227,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/13604"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/13604"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/13604/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13604/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/0c8ae86b407dbe454c9561b25ac16964e59656e7"}}}}