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
Phillip Wittrock
778f92ca0d
runfns: sort ContainerFilters depth first
...
- run ContainerFilters most deeply nested in the hierarchy before others
- test refactoring
2020-01-14 13:43:31 -08:00
bzub
34f21f44a1
Handle functions dir for resource destination.
2020-01-14 13:03:56 -06:00
Phillip Wittrock
7bbcba5d23
Re-introduce global scope for cmd/config run as flag
2020-01-13 08:42:20 -08:00
Kubernetes Prow Robot
982ad409bd
Merge pull request #2053 from pwittrock/master
...
cmd/config run scoping and path defaulting
2020-01-09 14:56:34 -08:00
Kubernetes Prow Robot
6d58848970
Merge pull request #2035 from pwittrock/openapi
...
Introduce OpenAPI kyaml libraries
2020-01-09 09:35:45 -08:00
Phillip Wittrock
8a2c886ab2
update kyaml go.mod and go.sum
...
also update cmd/config,cmd/kubectl,cmd/resource
2020-01-09 08:50:11 -08:00
Phillip Wittrock
2f5be62387
cmd/config run scoping and path defaulting
...
- default the path and index for Resources generated by functions
- scope functions to only operate against resources in subdirectories
2020-01-08 22:13:58 -08:00
Phillip Wittrock
54e92f1ab0
yaml formatter improvements
...
- identify and fix yaml 1.1 compatibility issues in configuration
- support providing function for performing custom formatting
2020-01-08 10:47:11 -08:00
Phillip Wittrock
04f5e6c953
Functions for identifying and fixing yaml 1.1 compatbility issues
...
- Identify if a field value would parse as a non-string yaml 1.1 value
- Using OpenAPI Schema to get Resource's field type
- Format yaml so value will be parsed as the correct type using a yaml 1.1 parser
2020-01-08 10:47:11 -08:00
Phillip Wittrock
9000eb7f81
Improve testing error messaging when comparing files
2020-01-08 10:47:11 -08:00
Phillip Wittrock
abeab51cae
Library for getting Resource and field Schema from OpenAPI
2020-01-08 10:47:11 -08:00
Phillip Wittrock
4628705494
Parse metadata directly instead of struct serialization hack
2020-01-07 16:24:52 -08:00
Phillip Wittrock
e473433cba
Remove config.kubernetes.io/package annotation
...
It doesn't do anything useful
2020-01-07 16:24:52 -08:00
Phillip Wittrock
0cae0feb9b
rename config.k8s.io/function to config.kubernetes.io/function
2020-01-07 16:24:49 -08:00
Phillip Wittrock
a7a28a85a4
Fix kio sorting for files with more than 9 Resources
2020-01-03 12:33:28 -08:00
Phillip Wittrock
e0b766ee46
Fix issue with setting set-by
2020-01-02 15:55:38 -08:00
Phillip Wittrock
ac9b0a3e9e
kyaml setters: support full and partial field replacement
2020-01-02 14:00:43 -08:00
Phillip Wittrock
b37abbf057
Refactor set
...
- Implement inline setters as OpenAPI extensions
- Naming cleanup substitute -> set
- Documentation cleanup
- Simplify implementation
2020-01-02 08:32:38 -08:00
Kubernetes Prow Robot
fc4a73f816
Merge pull request #2014 from alexeldeib/ace/varName
...
fix empty var names + clean up cross platform tests
2020-01-02 07:39:40 -08:00
Kubernetes Prow Robot
6e6878730c
Merge pull request #2010 from prachirp/funcAnnotation
...
Add support for config.k8s.io/function annotation
2020-01-02 07:21:40 -08:00
Ace Eldeib
c4d3a2ff3f
tests: make paths for x-plat friendly
2019-12-29 17:28:45 -08:00
Ace Eldeib
e0f62c67f6
fix: avoid passing empty variable names
2019-12-29 16:48:53 -08:00
Prachi Pendse
f6320ca379
Add support for config.k8s.io/function annotation
2019-12-23 13:44:42 -08:00
Katrina Verey
24cf0c1fdc
config tree defaults to graph structure when ownerRefs available
2019-12-23 16:36:25 -05:00
Phillip Wittrock
ad4eb87e2e
move setters to be available as libraries
2019-12-21 16:29:06 -08: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
Phillip Wittrock
502f86a982
rename ownedBy json value to setBy
2019-12-17 11:50:18 -08:00