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
Phani Teja Marupaka
a158eeaaff
Suggested changes
2020-06-19 12:33:07 -07:00
Phani Teja Marupaka
4cd3944860
Include json files for fn source
2020-06-19 12:33:06 -07:00
Jijie Wei
25186e94af
implement new visitor method
2020-06-18 13:49:54 -07:00
Jijie Wei
e4ba898e20
return subst name inerror message
2020-06-18 13:49:53 -07:00
Jijie Wei
22a6017870
update the pr to handle the case when the setter to be deleted is used in substitution
2020-06-18 13:49:52 -07:00
Phani Teja Marupaka
52e8a701ac
Fix validation for array setters
2020-06-18 11:50:02 -07:00
Kubernetes Prow Robot
9b5ce5002a
Merge pull request #2608 from mortent/AllValuesAcceptedAsStringType
...
Accept all values as string type in validation
2020-06-16 16:10:05 -07:00
Morten Torkildsen
0952421800
Accept all values as string type in validation
2020-06-16 15:54:28 -07:00
Phani Teja Marupaka
dbb16dcb6d
Suggested changes
2020-06-16 15:11:25 -07:00
Phani Teja Marupaka
0f0efe2a4c
Avoid manual step for creating array setters
2020-06-15 22:34:05 -07:00
Morten Torkildsen
714ff85806
Fix validation logic to use yaml parsing instead of json
2020-06-13 14:07:05 -07:00
Kubernetes Prow Robot
25a38ad2b6
Merge pull request #2573 from pankona/update-go-mod-to-use-go-1-14
...
Update go.mod to go 1.14
2020-06-08 10:09:49 -07:00
Phillip Wittrock
9a4acba118
Add tests for reading json
2020-06-08 08:48:14 -07:00
pankona
18d6a96f80
Update go.mod to use go 1.14
2020-06-08 16:25:35 +09:00