Rafael Leal
97de780feb
Fix error during expansion of !!merge <<: anchor tags ( #4383 )
...
* WIP
* Fix merge corner cases
* Add test for explicit !!merge tag
* Fix tests
* Cleanup
* Cleanup
* Fix deanchoring lists
* Add test case for keeping comments
* Add MapEntrySetter and fix json marshalling after deanchoring
* Keep duplicated keys
* Move MergeTag definition to yaml alias
* Remove go-spew from api
* Add support for sequence nodes on merge tags
* Add docstring to MapEntrySetter.Key
* Add docstring to MapEntrySetter struct
* Add tests to MapEntrySetter
* Fix duplicate merge key
* Revert whitespace changes on forked go-yaml
* Remove AssocMapEntry function
* Refactoring merge order
* Return errors on VisitFields and PipeE
* Add tests for each non-conforming map merges
2022-03-23 09:36:17 -07:00
natasha41575
c3c02887ec
bump ResourceList from v1alpha1 to v1
2021-10-19 16:15:27 -07:00
Jeff Regan
22b735885a
Merge pull request #4190 from natasha41575/MigrateIndexPathIdAnnotations
...
Migrate index path id annotations
2021-09-24 08:00:15 -07:00
monopole
dce4ea5846
Add AnchorsAweigh option to ByteReader to toggle YAML alias/anchor expansion
2021-09-22 12:44:08 -07:00
Natasha Sarkar
67a5f6d68f
support krm spec v1 and legacy path, index, and id annotations
2021-09-17 17:10:10 -07:00
monopole
360585dfaf
Add YAML anchor/alias expansion.
2021-08-19 11:55:09 -07:00
monopole
56da9a58fc
Kyaml anchor failure test.
2021-08-04 17:10:04 -07:00
Phani Teja Marupaka
29be7fabe4
Suggested changes
2021-07-12 23:34:03 -07:00
Phani Teja Marupaka
89b12cfc62
Change annotation name, error if conflicting options
2021-07-09 01:32:48 -07:00
Phani Teja Marupaka
f81201b74d
Add options, keep seqindent annotation equivalent to index annotation
2021-07-08 14:54:23 -07:00
Phani Teja Marupaka
6dbc74b32e
Suggested changes
2021-07-07 23:22:15 -07:00
Phani Teja Marupaka
ed38b5fe2b
Make seq indent configurable and add retain seq indent functionality
2021-07-07 16:53:40 -07:00
brianpursley
78737f5a38
Updated ByteReader to allow white space and comments on the same line after --- and throw an error if anything else is detected
2021-06-24 21:32:39 -04:00
Katrina Verey
bdbfb28139
Unwrap ResourceList with a functionConfig but no items
2021-01-12 16:13:40 -08:00
jregan
1eb378254a
Add more tests around yaml parsing.
2020-11-24 14:15:45 -08:00
Morten Torkildsen
c419c1efc3
Allow setters/substitutions with . in the name
2020-07-11 10:41:27 -07:00
Jijie Wei
488a88ec6e
modify the bytereader to handler windows line ending.
2020-07-07 09:49:17 -07:00
Phillip Wittrock
9a4acba118
Add tests for reading json
2020-06-08 08:48:14 -07:00
Phillip Wittrock
b72db9e783
ByteReader/Writer support for serializing ResourceList.results field
2020-04-14 12:59:46 -07:00
Phillip Wittrock
eaaefc128f
Using single quote style when setting annotations
...
Annotations must be strings. Use single-quote style
so tools don't get confused about the type.
2019-12-16 18:04:46 -08:00
Arthur Mello
d4fa006ccb
Remove leading/trailing newlines following whitespace linter recommendation
2019-12-05 23:49:00 -03:00
Arthur Mello
e811da14d8
Rename variable, constants and struct fields following stylecheck linter recommendation
2019-12-05 22:39:29 -03:00
Phillip Wittrock
c99278c67b
Add kyaml command for invoking container filters
2019-11-13 07:33:28 -08:00
Phillip Wittrock
3db1111f8e
kyaml: rename annotations and fix linting
2019-11-07 15:46:30 -08:00
Phillip Wittrock
efd7c8e3f7
kyaml: initial support for yaml and resource manipulation
2019-11-04 11:36:35 -08:00