{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16758","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16758/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16758/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16758/events","html_url":"https://github.com/kubernetes/kubernetes/pull/16758","id":114932080,"number":16758,"title":"Remove unhelpful output when jsonpath and template printers fail to print","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},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lgtm","name":"lgtm","color":"15dd18"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/S","name":"size/S","color":"77bb00"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-03T23:13:36Z","updated_at":"2015-11-04T00:28:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/16758","html_url":"https://github.com/kubernetes/kubernetes/pull/16758","diff_url":"https://github.com/kubernetes/kubernetes/pull/16758.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/16758.patch"},"body":"Fixes #16708 \r\n\r\nNow the error message becomes:\r\n```console \r\n$  kubectl get no -o jsonpath=\"{.name}\"\r\nError executing template: name is not found. Printing more information for debugging the template:\r\n\ttemplate was:\r\n\t\t{.name}\r\n\tobject given to jsonpath engine was:\r\n\t\tmap[string]interface {}{\"apiVersion\":\"v1\", \"metadata\":map[string]interface {}{}, \"items\":[]interface {}{map[string]interface {}{\"kind\":\"Node\", \"apiVersion\":\"v1\", \"metadata\":map[string]interface {}{\"labels\":map[string]interface {}{\"kubernetes.io/hostname\":\"127.0.0.1\"}, \"name\":\"127.0.0.1\", \"selfLink\":\"/api/v1/nodes/127.0.0.1\", \"uid\":\"ba0ef736-827f-11e5-a731-64510658e388\", \"resourceVersion\":\"19\", \"creationTimestamp\":\"2015-11-03T23:07:59Z\"}, \"spec\":map[string]interface {}{\"externalID\":\"127.0.0.1\"}, \"status\":map[string]interface {}{\"capacity\":map[string]interface {}{\"cpu\":\"12\", \"memory\":\"32840052Ki\", \"pods\":\"40\"}, \"conditions\":[]interface {}{map[string]interface {}{\"type\":\"Ready\", \"status\":\"True\", \"lastHeartbeatTime\":\"2015-11-03T23:07:59Z\", \"lastTransitionTime\":\"2015-11-03T23:07:59Z\", \"reason\":\"KubeletReady\", \"message\":\"kubelet is posting ready status\"}, map[string]interface {}{\"lastTransitionTime\":\"2015-11-03T23:07:59Z\", \"reason\":\"KubeletHasSufficientDisk\", \"message\":\"kubelet has sufficient disk space available\", \"type\":\"OutOfDisk\", \"status\":\"False\", \"lastHeartbeatTime\":\"2015-11-03T23:07:59Z\"}}, \"addresses\":[]interface {}{map[string]interface {}{\"type\":\"LegacyHostIP\", \"address\":\"127.0.0.1\"}, map[string]interface {}{\"type\":\"InternalIP\", \"address\":\"127.0.0.1\"}}, \"daemonEndpoints\":map[string]interface {}{\"kubeletEndpoint\":map[string]interface {}{\"Port\":10250}}, \"nodeInfo\":map[string]interface {}{\"osImage\":\"Ubuntu 14.04.3 LTS\", \"containerRuntimeVersion\":\"docker://1.9.0\", \"kubeletVersion\":\"v1.2.0-alpha.3.30+a78b2e0a9f63ec-dirty\", \"kubeProxyVersion\":\"v1.2.0-alpha.3.30+a78b2e0a9f63ec-dirty\", \"machineID\":\"e7696f0e50125bc3edd6c05955f0a2fd\", \"systemUUID\":\"7873D17C-CD83-11E4-9C43-BC0000060000\", \"bootID\":\"c4ae516b-9a9b-4687-af01-2ed4e7e1245c\", \"kernelVersion\":\"3.13.0-65-generic\"}}}}, \"kind\":\"List\"}\r\n\r\nerror: error executing jsonpath \"{.name}\": name is not found\r\n```\r\n\r\ncc @kubernetes/kubectl @kubernetes/goog-ux @lavalamp @mikedanese "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/153533079","html_url":"https://github.com/kubernetes/kubernetes/pull/16758#issuecomment-153533079","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16758","id":153533079,"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},"created_at":"2015-11-04T00:28:37Z","updated_at":"2015-11-04T00:28:37Z","body":"@k8s-bot unit test this"}}