Phillip Wittrock
701c217791
Refactor kustomize config command structure
...
- Create cfg, fn, live parent commands
2020-06-06 08:50:41 -07:00
Phillip Wittrock
28c919912a
Fix cmd/config windows issues
2020-05-21 16:53:24 -07:00
Phillip Wittrock
f17cec0b3f
Address kyaml windows compatibility issues
2020-05-19 15:44:30 -07:00
Morten Torkildsen
99b850555d
Add annotation for opting out of formatting
2020-05-15 13:43:02 -07:00
Phillip Wittrock
594c48d19a
Refactor container function runtime into its own package
2020-05-06 08:16:14 -07:00
Justin SB
028811eb97
Fix godocs on MergeFilter
...
It was copy-pasted from GrepFilter
2020-04-29 14:13:15 -04:00
Phillip Wittrock
6d9702561a
Enable functions to defer failures
...
so multiple validators can be run sequentially without shortcircuiting the pipeline
2020-04-17 20:27:58 -07:00
Phillip Wittrock
8d22cbdcca
Support writing results from container filter
2020-04-15 08:01:49 -07:00
Phillip Wittrock
b72db9e783
ByteReader/Writer support for serializing ResourceList.results field
2020-04-14 12:59:46 -07:00
Kubernetes Prow Robot
b349351e6e
Merge pull request #2343 from phanimarupaka/DetectMergeConflicts
...
Copy file from source to destination
2020-04-07 12:47:44 -07:00
Phani Teja Marupaka
7bddd14419
Copyfile
2020-04-07 12:17:07 -07:00
Phillip Wittrock
4f926df7cf
Fix path in runfn
...
- Calculate path relative to the functionConfig file
- Do not allow absolute paths or traversal to parent directories
2020-04-06 16:53:20 -07:00
Phani Teja Marupaka
a5a51ba76a
Remove format filter for update
2020-04-03 15:24:10 -07:00
Prachi Pendse
109ffdaec5
Update parsing of StringToStorageMount to use SplitN
2020-04-02 12:12:27 -07:00
Prachi Pendse
b17ea88bf7
Update mount flag to match docker docs
...
- Also modify TODO in validator-kubeval example
2020-04-02 11:20:32 -07:00
Prachi Pendse
38973a80c3
Use mount flag to pass storage mounts to functions
2020-04-01 15:03:57 -07:00
Prachi Pendse
39fe903498
Support mounting volumes to containers
2020-03-31 01:08:54 -07:00
Phani Teja Marupaka
17503ae9d8
Rearrange comments for yaml/V3 bug fix
2020-03-30 10:51:47 -07:00
Phillip Wittrock
7164e55831
Allow functions to enable the starlark filter (off by default)
2020-03-25 13:29:20 -07:00
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
Eddie Zaneski
6cdcb1f436
Support network in functions
...
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com >
2020-02-07 17:31:33 -07: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
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
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
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
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
eaaefc128f
Using single quote style when setting annotations
...
Annotations must be strings. Use single-quote style
so tools don't get confused about the type.
2019-12-16 18:04:46 -08:00
Arthur Mello
d4fa006ccb
Remove leading/trailing newlines following whitespace linter recommendation
2019-12-05 23:49:00 -03:00
Arthur Mello
849e0f357a
Unname unused parameters following unparam linter recommendation
2019-12-05 22:50:37 -03:00
Arthur Mello
e811da14d8
Rename variable, constants and struct fields following stylecheck linter recommendation
2019-12-05 22:39:29 -03:00