Mengqi Yu
cd2c6a1ad1
Remove the deprecation warning for a few RNode helpers
...
The Pipe method is not as intuitive as these helpers. These helpers
are convenient and useful. Deprecating them before we have better
alternatives is premature.
2021-12-03 11:47:34 -08:00
monopole
360585dfaf
Add YAML anchor/alias expansion.
2021-08-19 11:55:09 -07:00
phani
e1804cbc76
Retain field order after running any arbitrary functions on resources ( #4021 )
...
* Reorder resource fields
* Fix comment conflict
* Update e2e test ordering
* Suggested changes
2021-07-07 10:12:44 -07:00
Katrina Verey
2e8a3b7c45
Use the forked go-yaml module
2021-06-28 15:29:32 -07:00
Sam Wronski
1801d33287
Add error when datamap is nil
2021-06-18 10:14:17 -07:00
Sam Wronski
b01da61d83
Update argument name
2021-06-17 16:12:09 -07:00
Sam Wronski
a1f1c2d32f
Add documentation
2021-06-17 11:47:56 -07:00
Sam Wronski
10331d9560
Add GetValidatedDataMap to rnode
2021-06-17 01:46:35 -07:00
monopole
5c4e363f11
Remove delegation to RNode in Resource.
2021-05-11 10:49:17 -07:00
monopole
660847225d
Simplify gvk, speed up cluster-scoped checks.
2021-05-02 13:17:33 -07:00
monopole
235101a614
Drop uses of 'unstructured' terminology.
2021-03-15 15:59:06 -07:00
monopole
123a5d6e56
Remove the wrappy layer.
2021-03-15 15:59:06 -07:00
Natasha Sarkar
722b0131f0
return error for duplicate keys rather than panicking
2021-03-03 12:13:24 -08:00
Donny Xia
dd72ea1e6a
add functions for binaryData
2021-02-11 15:34:16 -08:00
monopole
cb59e0ef5f
Always tag label and annotations values as strings.
2021-01-15 17:37:46 -08:00
monopole
7c6bf2e21d
When merging configmaps, retain proper quoting.
2021-01-14 11:01:06 -08:00
monopole
1a002005c1
Add RNode.Map method and test to help decoding.
2021-01-09 06:57:01 -08:00
jregan
35087ed0cc
Add RNode.Set/GetDataMap to ease configmap generation.
2020-12-21 07:18:51 -08:00
Donny Xia
bae3228557
Add function to check is YNode zero
2020-12-11 14:55:44 -08:00
jregan
56c8df7b85
Add RNode implementation of label and annotation selectors.
2020-11-26 14:47:23 -08:00
jregan
ec64ef705b
Add metadata getters and setters to RNode.
...
These setters completely remove the field if the argument
is empty, rather than setting the field to an empty value,
mimicing apimachinery behavior.
2020-11-25 07:03:12 -08:00
jregan
b88e770b1d
binary data nope
2020-11-20 17:55:20 -08:00
Jeff Regan
97c18518ea
Update rnode.go
2020-11-16 21:37:28 -08:00
jregan
712276176c
Gather and use some of the kyaml constants.
2020-11-16 21:26:18 -08:00
Jeff Regan
02b4b56c60
Merge pull request #3233 from monopole/sliceFromBytes
...
Implement WNodeFactory.SliceFromBytes
2020-11-16 11:57:09 -08:00
jregan
e1c3caeba6
Introduce some RNode validation methods.
2020-11-16 11:32:23 -08:00
Justin SB
a823f3043f
Expand rnode function comments to point to multi-object options.
...
The rnode Parse and ReadFile functions only return a single object;
suggest kio.ByteReader for the case of parsing multiple objects.
2020-11-15 13:07:28 -05:00
jregan
a4f22cb84f
Add RNode fromMap method.
2020-11-14 13:10:53 -08:00
Natasha Sarkar
df0576a270
use merge key tuple instead of single merge key
2020-11-09 11:34:31 -08:00
Justin SB
eb4c5dc035
Remove some obsolete references to GrepFilter
...
Looks like GrepFilter was generalized to Filter.
2020-09-04 13:41:16 -04:00
jregan
24beeb429d
RNode copier
2020-08-21 18:04:58 -07:00
Phani Teja Marupaka
ca04c874f2
Delete substitution and fix delete setters
2020-08-18 22:24:50 -07:00
jregan
c4c8decb74
Delete non-rnode stuff from rnode.go.
2020-08-16 07:35:11 -07:00
jregan
0590b225c7
Copy types.go to rnode.go.
2020-08-16 07:35:11 -07:00