Commit Graph

15 Commits

Author SHA1 Message Date
Clayton Coleman
bcea2c8a4e
Allow missing keys in jsonpath
It is common in constrained circumstances to prefer an empty string
result from JSONPath templates for missing keys over an error. Several
other implementations provide this (the canonical JS and PHP, as well as
the Java implementation).  This also mirrors gotemplate, which allows
Options("missingkey=zero").

Added simple check and simple test case.
2016-08-30 13:06:26 -04:00
k8s-merge-robot
4da14c8a64 Merge pull request #28204 from thockin/cleanup-third_party
Automatic merge from submit-queue

Cleanup third party (pt 2)

Move forked-and-hacked golang code to the forked/ directory.  Remove ast/build/parse code that is now in stdlib.  Remove unused shell2junit
2016-07-07 12:13:14 -07:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Tim Hockin
8c42c08363 move forked golang code to a common dir with LICENSE 2016-06-28 22:57:45 -07:00
Tim Hockin
64d55887dc Move hacked golang template code to forked/ dir 2016-06-28 22:57:45 -07:00
Avesh Agarwal
d5e135e42c Fix jsonpath to handle maps with key of nonstring types 2016-03-22 17:32:40 -04:00
Clayton Coleman
9d5df20efe jsonpath: Handle interface{}(nil) as empty array 2016-01-21 23:18:31 -05:00
Dai Zuozhuo
ad5cc8b599 quote interpreted string 2015-11-19 11:15:10 +08:00
deads2k
e683842359 stop panicing on bad array length 2015-11-09 13:23:16 -05:00
Daniel Martí
5f3aff2c43 Fix struct input test in jsonpath 2015-09-10 11:44:13 -07:00
Brendan Burns
de14623775 Add a printer that knows how to print user-defined columns 2015-09-01 10:11:13 -07:00
Dai Zuozhuo
b61a905b19 add jsonpath to kubectl 2015-08-20 08:57:24 +08:00
Brendan Burns
99b8df1812 Add field based sorting to the kubectl command line. 2015-08-12 16:51:36 -07:00
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Dai Zuozhuo
949704af2c jsonpath template 2015-07-28 10:17:56 +08:00