Phillip Wittrock
85e9779bd6
Refactor container functions
2020-03-24 20:50:08 -07:00
Phillip Wittrock
efdd812cc1
refactor function filters
2020-03-24 11:18:46 -07:00
Phani Teja Marupaka
a36d5b76be
Skip writing to unedited files
2020-03-20 16:24:16 -07:00
Phani Teja Marupaka
702b10d524
Add FieldSetter filter
2020-03-17 10:08:29 -07:00
Kubernetes Prow Robot
7840b7f949
Merge pull request #2265 from pwittrock/merge3
...
Setters: support for setting string list fields
2020-03-17 09:44:30 -07:00
Phillip Wittrock
7e8f8a649c
Better starlark documentation
2020-03-09 16:41:57 -07:00
Phillip Wittrock
68a9389bfe
starlark fn support for functionConfig input
2020-03-09 10:30:20 -07:00
Phillip Wittrock
5364b2198a
Add Starlark kio.Filter
...
- Support for implementing filters in Starlark
2020-03-09 10:30:18 -07:00
Phillip Wittrock
63ff34ffe2
Walk: opt-in to visiting map keys when walking map entries
2020-03-09 10:29:26 -07:00
Phillip Wittrock
370502ed4b
Setters: support for setting string list fields
2020-03-07 13:53:24 -08:00
Khris Richardson
fcfe798b75
convert tests to exercise openapi and inference
2020-03-03 18:50:02 -08:00
Kubernetes Prow Robot
caa8fdc3cd
Merge pull request #2245 from pwittrock/merge3
...
Use OpenAPI when 3-way merging resources
2020-03-03 12:51:46 -08:00
Phillip Wittrock
5d1a0346b5
Use OpenAPI when merging (3way) resources
...
- When merging (3way) resources use the patch strategy from the openAPI if the definition exists for the field
- Allow disabling of guessing patch strategy merge keys when no definition exists
- Support defining strategy and key directly on configuration fields through line and header coments
- Support attaching schema to parent fields of lists, and propagating -- e.g. that a field is a PodTemplate
2020-03-02 20:56:53 -08:00
Phillip Wittrock
052deacbb2
Add license to kfns_test
2020-02-27 15:49:53 -08:00
Kubernetes Prow Robot
a24cc4d305
Merge pull request #2237 from Liujingfang1/master
...
add SetLabel function in kyaml library
2020-02-27 14:18:38 -08:00
Jingfang Liu
ef76575ab6
add test for SetLabel and SetAnnotation
2020-02-27 13:37:36 -08:00
Jingfang Liu
39094f2aeb
add SetLabel function in kyaml library
2020-02-27 12:11:06 -08:00
Phillip Wittrock
fa507f782f
Setters: support for explicit setter typing
...
- ensure OpenAPI definitions always uses strings for setter values
- allow the field type to be defined -- integer,boolean,string
- format values using yaml 1.1 compatibility
2020-02-27 11:51:18 -08:00
Kubernetes Prow Robot
8991b193c6
Merge pull request #2232 from pwittrock/setby
...
Setters: support for enums
2020-02-26 20:33:19 -08:00
Phillip Wittrock
3c776b3435
fix setter clear set-by test
2020-02-26 20:25:05 -08:00
Phillip Wittrock
cf61a360e0
Support for enum mappings in setters
2020-02-26 20:13:06 -08:00
Kubernetes Prow Robot
a588f498ea
Merge pull request #2228 from pwittrock/setby
...
Setters: clear set-by if unspecified when setting a value
2020-02-26 14:23:19 -08:00
Phillip Wittrock
573d7b7234
Setters: clear set-by if unspecified when setting a value
2020-02-26 13:53:47 -08:00
Phani Teja Marupaka
275bf05ae2
Refactoring and Table tests
2020-02-26 11:37:14 -08:00
Phani Teja Marupaka
d70f3a7958
Update go files
2020-02-25 14:09:37 -08:00
Phani Teja Marupaka
a8b5ec2c61
Suggested Changes and Unit Tests
2020-02-24 12:35:14 -08:00
Phillip Wittrock
6f176b1507
Merge pull request #2203 from pwittrock/setter-wiring
...
Manually merging since the prow automation does not appear to be configured correctly
2020-02-24 09:23:00 -08:00
Phillip Wittrock
61cf3e6ec5
wire set 2.0 command
2020-02-19 14:25:38 -08:00
Phillip Wittrock
d7e0b1ac31
setter utilities for simplifying commands
2020-02-19 14:25:38 -08:00
Phillip Wittrock
5549035b69
support for listing setters
2020-02-19 14:25:38 -08:00
Phillip Wittrock
025200cc12
support for adding setter substitution
...
- refactor add setter to include file updates
- support add substitution file updates
2020-02-19 14:25:38 -08:00
Phillip Wittrock
154939803f
better support for reading / writing single resource yaml files
2020-02-19 08:16:07 -08:00
Phillip Wittrock
64c30a0678
fix nil dereference issue in fieldmeta
2020-02-19 08:13:26 -08:00
Phillip Wittrock
b7bef5dc44
openapi support for loading definitions from a file
2020-02-19 08:13:26 -08:00
Kubernetes Prow Robot
3fc359043a
Merge pull request #2199 from phanimarupaka/Setters2ReadAndWrite
...
Setter Definitions read and write
2020-02-12 10:14:51 -08:00
Phani Teja Marupaka
6b6a74af19
Substitutions
2020-02-12 09:20:43 -08:00
Phillip Wittrock
437be2831f
setters 2.0: support for adding references to setters
2020-02-11 16:04:32 -08:00
Phillip Wittrock
7097013426
setters 2.0
2020-02-11 11:00:58 -08:00
Phani Teja Marupaka
29fbc564e3
Setter Definitions read and write
2020-02-11 10:45:39 -08:00
Eddie Zaneski
6cdcb1f436
Support network in functions
...
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com >
2020-02-07 17:31:33 -07:00
Kubernetes Prow Robot
daa9504890
Merge pull request #2181 from phanimarupaka/FieldOptionalForSetter
...
Make field optional flag for create setter
2020-02-05 12:47:55 -08:00
Phani Teja Marupaka
72e7084639
Make filed optional flag for create setter
2020-02-05 09:21:45 -08:00
Phillip Wittrock
073a11f3f1
Support loading openapi from []bytes
2020-02-05 08:43:11 -08:00
Phillip Wittrock
32fc17fedd
kio: don't apply folded style to wrapped items
2020-02-04 13:51:42 -08:00
Kubernetes Prow Robot
bf6982afa3
Merge pull request #2176 from phanimarupaka/OptInToFormatSchema
...
Opt in to use schema
2020-02-04 11:27:27 -08:00
Phani Teja Marupaka
79d591e2b0
Opt in to use schema
2020-02-04 10:50:17 -08:00
Phillip Wittrock
2d54981bcd
optionally use filepath as part of merge key for merge3
2020-02-03 19:28:40 -08:00
Frank Farzan
7372a371b4
kyaml: Handle functions in top-level directory.
...
scope() method uses HasPrefix to detect whether a resource
is in a subdirectory of function directory. It doesn't handle
the case when the function is in top-level dir ('.').
2020-01-31 14:41:56 -08:00
Phillip Wittrock
474dfc916b
kyaml/rnfn: support explicit fn list and reading from an io.Reader
...
- Support specifying an io.Reader as Input. Use this instead of Path for reading Resources.
- Default io.Writer to os.Stdout if no Path is specified
- Default io.Reader to os.Stdin if no Path is specified
- Support specifying an explicit list of Functions.
If specified, use these in place of reading from the Input or Directory source by default.
2020-01-14 18:19:13 -08:00
Kubernetes Prow Robot
02dbc0da98
Merge pull request #2100 from pwittrock/master
...
runfns: sort ContainerFilters depth first
2020-01-14 14:06:36 -08:00