monopole
6f6d41f17f
Remove dead merge conflict code.
2021-03-17 06:35:30 -07:00
Kubernetes Prow Robot
4345cd2ade
Merge pull request #3534 from KnVerey/starlark_genformer
...
Fix function/exec transformer plugin ability to add/remove resources
2021-02-04 19:54:51 -08:00
Katrina Verey
1460d13d50
Allow exec and function transformers to delete resources
2021-02-04 13:01:09 -08:00
Katrina Verey
97a2b15be6
Allow exec and function transformers to generate resources
2021-02-04 13:01:09 -08:00
Natasha Sarkar
f71854a0c8
Refactored resource to store all previous names and namespaces
2021-02-03 12:01:09 -08:00
monopole
64644643d4
Improve name reference transformer testing.
2021-01-31 08:40:47 -08:00
monopole
2cb972de3b
Rename id annotations to build annotations.
2021-01-15 06:43:13 -08:00
Natasha Sarkar
bd4580d73a
Manage name changes (prefix/suffix) via YAML annotations rather than via in-memory-only fields.
2021-01-11 13:08:45 -08:00
jregan
f66e5bb923
Extract conflict detection to it's own interface.
...
This PR
- defines a patch conflict detector interface,
- extracts implementations of the interface from the
merginator code, making the merginator code
independent of --enable_kyaml.
- injects those implementations into kustomize
as a function of --enable_kyaml.
So, instead of using different merginators to combine
resmaps, this pr allows the use of a single patch merge
code path that uses different conflict detectors.
So instead of debating how to merge, we're now only
considering whether to warn on conflict detection
in one transformer.
This PR is in service of #3304 , eliminating seven
instances where --enable_kyaml was consulted. These
were cases where conflict detection wasn't an issue
(but merging patches was).
2020-12-06 08:38:45 -08:00
jregan
5248fd0cd9
In some tests, replace reflection with yaml compare.
2020-11-22 18:48:32 -08:00
jregan
a5f3d5c823
Use DepProvider in tests to access kyaml impls.
2020-11-21 14:49:44 -08:00
Donny Xia
5ab320c216
fix helm chart inflation generator
2020-11-10 10:03:26 -08:00
Donny Xia
be8d2fe016
Merge pull request #3161 from mikebz/mb_remove_travis
...
removing travis references
2020-11-03 11:15:58 -08:00
Mike Borozdin
072ae36fe6
removing travis references
2020-11-03 10:04:42 -08:00
Donny Xia
e75d4fc87d
convert helm inflator to builtin plugin
2020-10-30 23:18:54 -07:00
Jeff Regan
1bfcc81f08
Merge pull request #3027 from gochist/windows-exec
...
Support exec plugin on Windows
2020-10-07 14:18:14 -07:00
June Yi
51ecca8f2f
Add a comment about the behavior in Windows
2020-10-03 09:49:56 +09:00
June Yi
85f79edc97
Add testcase for ErrIfNotExecutable
2020-09-26 18:01:39 +09:00
Jeff Regan
1320e0c3dc
Merge pull request #2999 from aodinokov/fixenv
...
Added list of env variables for fn-plugins
2020-09-25 17:00:28 -07:00
June Yi
551841b789
Support exec plugin on Windows
2020-09-22 22:42:18 +09:00
jregan
0bfec6b39b
Unpin kyaml, cmd/config and api.
2020-09-20 08:07:32 -07:00
jregan
b115c95ea1
Pin to api/v0.6.1
2020-09-17 16:27:08 -07:00
Alexey Odinokov
b314ca185f
Added list of env variables for fn-plugins
...
KRM-functions should be able get env variables.
Reflecting in `build` cmd args added in [1]
for `fn run` cmd.
[1]
https://github.com/kubernetes-sigs/kustomize/pull/2988/
2020-09-17 03:41:36 +00:00
jregan
1d91401772
Simplify use of the Merginator.
2020-08-22 08:07:57 -07:00
Donny Xia
8bb612889c
Improve function invocation
2020-06-29 16:51:56 -07:00
Donny Xia
e3ec184e92
Add unit test for fnplugin
2020-06-29 14:07:48 -07:00
Donny Xia
3019230283
Move functionConfig from items to upper level
2020-06-29 13:35:14 -07:00
Donny Xia
8d543d8483
Refactor
2020-06-29 11:12:20 -07:00
Donny Xia
94a55210e1
skeleton for kustomize function
2020-06-29 10:45:37 -07:00
Alexey Odinokov
919bdb84c9
Refactoring to get rid of duplicated code
2020-06-26 04:28:38 +00:00
Alexey Odinokov
6e91e0667d
Disabled tests because we don't have docker installed
2020-06-26 04:22:31 +00:00
Alexey Odinokov
b3951942e3
removed commented import to make linter happy
2020-06-26 04:22:31 +00:00
Alexey Odinokov
b78464c8b1
Made generators work in addition to transformers
...
Made go fmt to make linter happy
2020-06-26 04:22:31 +00:00
Alexey Odinokov
9bd4f78288
PoC to use kpt functions as kustomize plugins
...
Closes [1]
In addition removes accidentally committed binary [2]
[1]
https://github.com/GoogleContainerTools/kpt/issues/646
[2]
1644fdd076 (diff-78873bc1f515e5cb644e68f0bcbaba23)
2020-06-26 04:22:31 +00:00
jregan
e783af2881
Delegate to Kunstructured.
2020-06-19 15:06:13 -07:00
jregan
a193129920
Remove race in tests.
2020-05-23 17:51:32 -07:00
jregan
02184dbfc5
Add logging.
2020-05-22 18:57:18 -07:00
jregan
b4f9e9ae56
Make plugin utils package.
2020-05-22 18:17:36 -07:00
jregan
75d8492c51
Remove flakey test optimization.
2020-05-22 16:58:03 -07:00
jregan
006953265f
Make a test more relocatable.
2020-05-20 17:00:08 -07:00
jregan
e54455705d
ValueAddTransformer
2020-05-10 17:49:46 -07:00
Patrick Wiseman
cae8fd0013
Update link to travis pre-commit hook in docs
2020-04-30 12:03:47 -04:00
Donny Xia
63f7495e88
Remove inventory transformer #2392
2020-04-28 17:36:44 +00:00
jregan
3786db2dba
Remove time guessing.
2020-04-22 13:20:10 -07:00
jregan
2c615d78a2
Remove static cling in plugin development flow.
2020-04-20 08:29:01 -07:00
jregan
504029281a
Add compiler utils test.
2020-04-19 17:44:01 -07:00
jregan
1653a70693
Plugin loader improvements.
2020-04-18 18:29:10 -07:00
jregan
c4db0f9a60
checkpoint
2020-04-10 11:01:31 -07:00
Jeff Regan
7cdb157a55
Update execplugin_test.go
2019-12-12 13:57:00 -08:00
Jeff Regan
dae03a9618
Merge branch 'master' into fix-process-args-fields
2019-12-12 13:41:50 -08:00