Francesc Campoy
7fae7d1bd6
Move api/filesys to kyaml/filesys ( #3997 )
...
* Move api/filesys to kyaml/filesys
* Add deprecated version of api/filesys with aliases to new code
* Use new kyaml/filesys package and update dependencies
* Migrate to kyaml/filesys and update dependencies
* Skip tests that break on Windows
2021-06-16 11:42:00 -07:00
Khris Richardson
727e24f365
append AsCurrentUser to FnPluginLoadingOptions
2021-06-15 12:29:59 -07:00
Mikhail Mazurskiy
a3ed120efb
Handle errors
2021-06-05 09:43:13 +10:00
Kubernetes Prow Robot
af96bb4bda
Merge pull request #3914 from natasha41575/GkeServiceAccountGenerator
...
Gke service account generator
2021-05-27 15:36:23 -07:00
Natasha Sarkar
5a2a7709a4
add IAMPolicyGenerator
2021-05-26 16:54:38 -07:00
monopole
172adc404f
Consolidate scripts into k8s-traditional hack dir.
2021-05-24 17:09:11 -07:00
monopole
5c4e363f11
Remove delegation to RNode in Resource.
2021-05-11 10:49:17 -07:00
monopole
82abd7e9ea
Simplify kind and name change code.
2021-05-09 16:20:39 -07:00
monopole
c8dddac5b9
Move resid package from api to kyaml
2021-04-30 20:39:32 -07:00
Natasha Sarkar
038bc7713b
add replacement transformer
2021-04-15 14:12:33 -07:00
monopole
aa5b4814d6
upgrade to helm 3.5.4 and imdario/mergo v0.3.12
2021-04-09 15:05:41 -07:00
Katrina Verey
3255c73c71
Loader FS and empty env fix
2021-03-24 18:44:29 -07:00
Katrina Verey
e77c284924
Do no require exec/go plugin home to use fn plugins
2021-03-23 10:47:16 -07:00
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