Natasha Sarkar
71f4cecb4c
fixed ports merging issue and refactored some kyaml.walk code
2021-02-08 17:49:10 -08:00
monopole
769f65d6c4
Short circuit anno/label transformer for performance.
2021-01-08 18:02:58 -08:00
Natasha Sarkar
886f73aa0f
added test case for no values
2020-11-06 13:14:25 -08:00
Natasha Sarkar
73d91dda6e
changed handling of empty values
2020-11-06 11:42:17 -08:00
Natasha Sarkar
9f06376ab2
updated associative sequence
2020-11-05 17:22:54 -08:00
Natasha Sarkar
e785bab474
updated matchelementlist
2020-11-05 17:03:52 -08:00
Natasha Sarkar
8f80a898b6
removed elementsetterlist and updated elementsetter
2020-11-05 16:50:18 -08:00
Natasha Sarkar
03e2fed925
checked array length
2020-11-05 12:16:17 -08:00
Natasha Sarkar
99aaa80e1d
updated stale comments
2020-11-05 11:40:36 -08:00
Natasha Sarkar
1f806b0aa2
add elementsetterlist and elementmatcherlist to fns.go
2020-11-05 11:37:45 -08:00
Donny Xia
6bed275234
add more tests for ElementSetter
2020-11-03 15:23:34 -08:00
Donny Xia
3fed68b694
clarify the comments
2020-11-03 13:09:12 -08:00
Donny Xia
9c7b4fddf9
code review
2020-10-20 12:39:50 -07:00
Donny Xia
92826c6a1e
support array index in PathGetter
2020-10-15 16:28:09 -07:00
Donny Xia
bb60c29672
add GetElementByKey
2020-09-29 17:36:07 -07:00
Justin SB
341bacb9a2
Fix comment on SplitIndexNameValue
...
It was incorrect and suggested some behaviour which isn't present.
Added test to verify the documented behaviour.
2020-09-11 11:39:49 -04:00
Phani Teja Marupaka
25e30de2d6
Update setter comments correctly on updates
2020-08-15 03:46:33 -07:00
jregan
0e13eadd7a
IsFieldEmpty renamed to MapNode.IsNilOrEmpty
2020-08-10 10:24:02 -07:00
jregan
5559601ecb
Add tests for IsTaggedNull, IsYNodeEmptySeq and IsYNodeEmptyMap.
2020-08-09 12:29:35 -07:00
jregan
31c59bd7f2
Drop all calls to IsEmpty.
2020-08-09 10:47:06 -07:00
Jeff Regan
686e97f2fe
Merge pull request #2810 from Shell32-Natsu/fieldspec-empty
...
fix panic when fieldspec refers an empty value
2020-08-07 11:50:14 -07:00
Donny Xia
669ae59982
code review
2020-08-07 11:12:40 -07:00
Donny Xia
a2693d0249
fix panic when fieldspec refers an empty value
2020-08-07 10:47:25 -07:00
Donny Xia
d59d0401f4
Keep empty map in kustomize output
2020-08-06 13:21:38 -07:00
Phillip Wittrock
98431f6a00
fix kyaml issue where dropping Style created issues
...
dropping the node style creates a compatibility issue where quotes around "on" are dropped
because yaml.v3 interprets it as a string.
other yaml parsers interpret on as a bool value, and parse it as a bool rather than string.
fix: retain the original style so it is kept as quoted.
- fmt: don't drop the styles
- merge2: keep the style when merging elements
- setting a field: if changing the value of a scalar field, retain its style by default
2019-12-19 20:25:31 -08:00
Arthur Mello
0a8d7c2be2
Fix code to address complains from gocritic (assignOp, ifElseChain and appendAssign)
2019-12-06 16:34:27 -03:00
Arthur Mello
d4fa006ccb
Remove leading/trailing newlines following whitespace linter recommendation
2019-12-05 23:49:00 -03:00
Igor Zibarev
301e529a4a
kyaml: fix scopelint issues
2019-11-12 23:42:02 +03:00
Phillip Wittrock
b473faccca
Improve error handling in kyaml libraries
2019-11-12 08:53:55 -08:00
Phillip Wittrock
2e33a69388
Update documentation for kyaml package
2019-11-07 09:16:27 -08:00
Phillip Wittrock
efd7c8e3f7
kyaml: initial support for yaml and resource manipulation
2019-11-04 11:36:35 -08:00