Jeff Regan
606654756d
Update kfns.go
2020-11-16 21:38:25 -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
Phillip Wittrock
02e7589323
Function framework testutil support for functions which refer to local files
...
Some functions may read local files using relative paths. Update the test
framework to `cd` into the directory containing the config.yaml before
running the function.
2020-11-16 16:35:07 -08:00
Phillip Wittrock
02b14d919b
fn framework -- add support for patch templates
2020-11-16 14:01:08 -08:00
Phillip Wittrock
bd0a699ff6
Refactor fn/framework tests to use a common library.
2020-11-16 14:00:55 -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
Kubernetes Prow Robot
97f3ac2da1
Merge pull request #3185 from aodinokov/streamline-fn-plugin-kyaml-part
...
Allowing RunFns not to stop on empty result
2020-11-13 13:47:04 -08:00
Kubernetes Prow Robot
9569ca93d9
Merge pull request #3220 from natasha41575/OpenApiVersionField
...
Add multiple versions of OpenAPI schema to kyaml
2020-11-13 10:39:05 -08:00
Natasha Sarkar
4d7600d4ef
updated comments and readme
2020-11-12 18:02:11 -08:00
Phani Teja Marupaka
2278e01b7f
Delete v1 setters code
2020-11-12 15:29:07 -08:00
Phillip Wittrock
8b9d8a266d
Support standalone mode for framework functions
2020-11-12 11:54:58 -08:00
Phillip Wittrock
5557e1ff3c
Retain element ordering when merge resources
2020-11-12 08:54:16 -08:00
Phillip Wittrock
1c009ca217
More control over bytereadwriter options
...
- Override wrapping
- Override function config
2020-11-12 08:54:16 -08:00
Natasha Sarkar
b61a115e76
added support for multiple kubernetes openapi schemas
2020-11-11 18:09:41 -08:00
Natasha Sarkar
155c42679c
cleaned comments
2020-11-09 20:17:51 -08:00
Natasha Sarkar
df0576a270
use merge key tuple instead of single merge key
2020-11-09 11:34:31 -08:00
Kubernetes Prow Robot
0acac39640
Merge pull request #3192 from Shell32-Natsu/multierror
...
Improve the readability for multiple errors in kusttarget
2020-11-06 17:21:38 -08:00
Donny Xia
65db82df0c
Merge pull request #3177 from Shell32-Natsu/json-patch
...
Improve json patch plugin
2020-11-06 16:17:24 -08:00
Donny Xia
68951bb37e
format
2020-11-06 15:38:33 -08:00
Donny Xia
7966386615
improve format
2020-11-06 15:17:56 -08:00
Jeff Regan
b58075cbc3
Merge pull request #3176 from natasha41575/ElementSetterList
...
add ElementSetterList and ElementMatcherList to fns.go
2020-11-06 13:40:48 -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
Jeff Regan
57f4ea5354
Merge pull request #3166 from phanimarupaka/DeferOpenAPICleanup
...
Defer openAPI cleanup
2020-11-05 14:48:00 -08:00
Phani Teja Marupaka
ec2cc2d421
Defer openAPI cleanup
2020-11-05 13:49:43 -08:00
Natasha Sarkar
a04e3a575c
added test case for different length keys/values
2020-11-05 12:19:54 -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
Alexey Odinokov
28cdcc2e46
Allowing RunFns not to stop on empty result
...
Introducing the additional flag
ContinueOnEmptyResult that is false by default
to keep compatibility with the previous behavior.
Based on [1]
[1]
https://github.com/kubernetes-sigs/kustomize/pull/3112
2020-11-05 07:19:20 +00:00
Natasha Sarkar
c0ecd1d1ad
added more tests
2020-11-04 19:07:58 -08:00
Natasha Sarkar
3923c63182
added some tests to merge3/element_test.go
2020-11-04 19:07:58 -08:00
Kubernetes Prow Robot
d8d57eae29
Merge pull request #3174 from Shell32-Natsu/elementsetter-test
...
add tests for ElementSetter
2020-11-03 15:42:04 -08:00
Donny Xia
c803ca83a4
fix linter error
2020-11-03 15:29:01 -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
Natasha Sarkar
0e59c36d03
added StringList set
2020-11-03 12:42:37 -08:00
Donny Xia
be327e7443
add tests for ElementSetter
2020-11-03 11:54:44 -08:00
Jeff Regan
119d7cadf5
Merge pull request #3136 from natasha41575/NamespaceabilityFromOpenAPI
...
removed hardcoded list of namespaceable resources
2020-10-26 12:22:36 -07:00
Natasha Sarkar
49dced2e01
removed hardcoded list of namespaceable resources
2020-10-23 11:47:29 -07:00
Phani Teja Marupaka
bcaac6f8c1
Make isSet a parameter
2020-10-22 11:31:30 -07:00
Kubernetes Prow Robot
287b38cc87
Merge pull request #3106 from Shell32-Natsu/array-index
...
support array index in PathGetter
2020-10-21 11:16:20 -07:00
Donny Xia
9c7b4fddf9
code review
2020-10-20 12:39:50 -07:00