Donny Xia
65fd7c3e6e
Add seq tag in kyaml
2020-07-24 11:17:31 -07:00
phani
d9fe98a289
Revert "List and set setters in folders recursively"
2020-07-22 13:51:42 -07:00
Jeff Regan
8b9829f222
Merge pull request #2738 from phanimarupaka/ListSettersRecursively
...
List and set setters in folders recursively
2020-07-22 13:14:13 -07:00
Kubernetes Prow Robot
6fccb7fd48
Merge pull request #2743 from phanimarupaka/FixV1Setters
...
Fix V1 setters
2020-07-22 10:52:06 -07:00
Phani Teja Marupaka
eb7beba8ad
Fix V1 setters
2020-07-22 10:17:10 -07:00
Jeff Regan
1e3bc51645
Merge pull request #2748 from monopole/tweakSequenceTreatment
...
Tweak sequence treatment in fieldspecs
2020-07-22 10:01:21 -07:00
Jeff Regan
a70c6b3496
Tweak sequence treatment in fieldspecs
2020-07-22 09:23:47 -07:00
Phani Teja Marupaka
108195185f
List and set setters in folders recursively
2020-07-20 00:50:04 -07:00
Phani Teja Marupaka
e894756003
Error for null files while reading
2020-07-15 16:05:52 -07:00
Jeff Regan
ec9ae3d7b0
Merge pull request #2713 from Shell32-Natsu/empty-list-in-patch
...
Keep empty array in output
2020-07-14 13:50:37 -07:00
Donny Xia
3a828941fa
Improve tests
2020-07-14 11:38:29 -07:00
Donny Xia
23bd4390d3
code review
2020-07-13 16:40:34 -07:00
Donny Xia
c6b6dec91f
Add tests for IsEmpty and IsMissingorNull
2020-07-13 14:15:55 -07:00
Kubernetes Prow Robot
9cf4367db7
Merge pull request #2709 from aodinokov/fixmount
...
Fixed incorrect docker mount arguments generation
2020-07-13 12:35:22 -07:00
Alexey Odinokov
ba3e09849a
Made mountString params more similar to docker params
...
see [1]
kept support for the previous field names similarly to
docker behavior.
[1]
https://docs.docker.com/storage/bind-mounts/#use-a-read-only-bind-mount
2020-07-13 17:21:37 +00:00
Donny Xia
236ae29e9a
Don't consider empty array as "empty"
2020-07-13 10:03:24 -07:00
Morten Torkildsen
c419c1efc3
Allow setters/substitutions with . in the name
2020-07-11 10:41:27 -07:00
Alexey Odinokov
63f9f79fc0
Fixed incorrect docker mount arguments generation
...
The previous implementation combined --mount and -v notation
of argument [1] adding :ro to make the read-only mount point.
E.g. the command [2] called docker with the following
params: [3]. As a result instead of the read-only
folder /tmp/source, the read-write folder /tmp/source/:ro/'
is created.
This PR:
1. substitutes ':ro' with correct ',readonly'.
2. changes 'src=' and 'dst=' with 'source=' and 'target=' as
it is stated in the documentation [1]
3. introduces the ability to EXPLICITLY create a mountpoint
with read-write access. To do so it's necessary to add
',rw=true' to the --mount argument
4. corrects UTs adds some additional coverage for added
functionality
[1]
https://docs.docker.com/storage/bind-mounts/#use-a-read-only-bind-mount
[2]
kustomize fn run ./d --mount type=bind,src=$(pwd)/test/,dst=/tmp/source/
[3]
--mount type=bind,src=/home/ubuntu/kpt-functions-catalog/functions/ts/test/,dst=/tmp/source/:ro
2020-07-11 17:03:44 +00:00
Jijie Wei
488a88ec6e
modify the bytereader to handler windows line ending.
2020-07-07 09:49:17 -07:00
jregan
d3a7335bbc
Switch namespace and patch transformers to kyaml.
2020-07-04 16:21:01 -07:00
Phani Teja Marupaka
9567d7ef16
Remove count field, convert error to warning
2020-07-01 10:55:30 -07:00
jregan
66bcf84682
Upgrade to gopkg.in/yaml.v2 v2.3.0
2020-06-30 18:06:06 -07:00
Jeff Regan
83c5c4d1f1
Merge pull request #2661 from trodge/field-not-found-error
...
Error message for creating setter that matches no fields
2020-06-30 15:08:28 -07:00
Kubernetes Prow Robot
7259d3eb48
Merge pull request #2670 from phanimarupaka/CheckRequiredSetters
...
Check if required setters are set
2020-06-30 13:34:07 -07:00
Phani Teja Marupaka
0d90b769f1
Check if required setters are set
2020-06-30 13:21:17 -07:00
jregan
f24ec14956
Fix an index.
2020-06-29 17:48:30 -07:00
Thomas Rodgers
3a0dd72c88
added count for list setters
2020-06-29 09:52:18 -07:00
Thomas Rodgers
d4ed285fd1
added count for creating setters
2020-06-29 09:37:18 -07:00
Thomas Rodgers
4cae8cfe9b
added error message
2020-06-29 09:37:18 -07:00
jregan
ef04983392
Start supporting strategic merge patch in kyaml merge2.
2020-06-28 12:12:09 -07:00
jregan
781e396122
Allow multiple patch strategies.
2020-06-26 14:46:29 -07:00
jregan
9137d2a39a
Deployment volume merge tests.
2020-06-26 14:19:15 -07:00
Kubernetes Prow Robot
95f4ecd261
Merge pull request #2657 from phanimarupaka/FixCommentsInFunctions
...
Fix copy comments for Folded style scalar nodes
2020-06-26 12:41:31 -07:00
Phani Teja Marupaka
600d4f2c0b
Fix copy comments for Folded style scalar nodes
2020-06-26 12:22:08 -07:00
jregan
625e011e2b
More kyaml list merge tests
2020-06-26 10:58:27 -07:00
Jeff Regan
695ec44bf7
Merge pull request #2636 from jijiew/fmt-test
...
add test case showing that kustomize/kpt fmt works on yaml file with top-level lists
2020-06-25 11:04:21 -07:00
Jijie Wei
3183fcc926
simplify the test case
2020-06-25 10:01:15 -07:00
Jijie Wei
0af9ca1266
simplify the test case
2020-06-25 09:59:17 -07:00
Kubernetes Prow Robot
69aea07c4e
Merge pull request #2637 from pwittrock/merge-primitize
...
Support merging primitive lists
2020-06-23 16:55:18 -07:00
Jijie Wei
f17b893dd2
fmt
2020-06-23 13:16:18 -07:00
Phillip Wittrock
09894d3022
Support merging primitive lists
2020-06-23 12:39:51 -07:00
Phani Teja Marupaka
68ab3b87d9
Required setters for apply
2020-06-22 22:33:21 -07:00
Jijie Wei
e9bd11caaa
add test for fmt on yaml file of a list
2020-06-22 22:32:08 -07:00
Kubernetes Prow Robot
a895220743
Merge pull request #2553 from jijiew/deletesetter
...
Delete setters
2020-06-22 12:15:40 -07:00
Jijie Wei
be0f1a7fcb
remove the uncessary conversion
2020-06-22 10:00:22 -07:00
Jijie Wei
99d2994b98
remove empty definition
2020-06-22 09:54:10 -07:00
Phani Teja Marupaka
28307bc435
Simplify parsing
2020-06-19 17:21:13 -07:00
Phani Teja Marupaka
e994b3b566
E2e test for run with json
2020-06-19 12:33:08 -07:00
Phani Teja Marupaka
b39c522cc1
Suggested changes
2020-06-19 12:33:08 -07:00
Phani Teja Marupaka
dc4bf03da2
Write json files in sink
2020-06-19 12:33:07 -07:00