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
monopole
5c4e363f11
Remove delegation to RNode in Resource.
2021-05-11 10:49:17 -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
240cda089a
Add flag --enable-helm
2021-04-12 13:40:21 -07:00
Jeff Regan
aeba50488b
Merge pull request #3792 from monopole/nits
...
Fix nits, add internal GetRoot func.
2021-04-12 07:53:00 -07:00
monopole
9c43518a15
Fix nits, add internal GetRoot func.
2021-04-12 07:51:01 -07:00
monopole
aa5b4814d6
upgrade to helm 3.5.4 and imdario/mergo v0.3.12
2021-04-09 15:05:41 -07:00
Jeff Regan
197bb9d9e3
Merge pull request #3744 from KnVerey/plugin-dir-error
...
Do no require exec/go plugin home to use fn plugins
2021-03-26 11:26:48 -07:00
Katrina Verey
3255c73c71
Loader FS and empty env fix
2021-03-24 18:44:29 -07:00
Donny Xia
5ed2067be9
Add labels field to kustomization
2021-03-22 17:01:45 -07:00
monopole
6f6d41f17f
Remove dead merge conflict code.
2021-03-17 06:35:30 -07:00
monopole
123a5d6e56
Remove the wrappy layer.
2021-03-15 15:59:06 -07:00
Natasha Sarkar
f96ac2d61e
allow general name and kind changes via an options field in patches
2021-03-10 14:58:58 -08:00
Natasha Sarkar
722b0131f0
return error for duplicate keys rather than panicking
2021-03-03 12:13:24 -08:00
Kubernetes Prow Robot
30e53a992b
Merge pull request #3617 from natasha41575/UseCustomOpenApiSchema
...
add openapi/path field to use custom openapi schema document
2021-02-24 15:03:24 -08:00
Natasha Sarkar
7dd0ade0f9
add openapi/path field to use custom openapi schema document
2021-02-19 14:19:22 -08:00
Natasha Sarkar
6361c3b1b7
fixed panic on patch delete for objects
2021-02-18 10:47:13 -08:00
monopole
e33addc16b
Drop hashicorp multierror due to MPL
2021-02-11 12:24:22 -08:00
Natasha Sarkar
866dbf2017
added an openapi field to the kustomization file
2021-01-22 16:06:57 -08:00
monopole
2cb972de3b
Rename id annotations to build annotations.
2021-01-15 06:43:13 -08:00
monopole
bb41d018b5
Add more tests and explain some strange quotes.
2021-01-13 15:49:12 -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
4a55a07c14
Patchtransformers - drop copied code, improve deletion handling.
2020-11-30 11:58:43 -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
abc88c56c4
support inline transformer and generator
2020-11-12 15:19:14 -08:00
Kubernetes Prow Robot
0acac39640
Merge pull request #3192 from Shell32-Natsu/multierror
...
Improve the readability for multiple errors in kusttarget
2020-11-06 17:21:38 -08:00
Donny Xia
94d26ba53a
improve the readability for multiple errors
2020-11-06 15:16:48 -08:00
Donny Xia
3b79944190
improve target in JSON6902 transformer
2020-11-03 17:13:43 -08:00
Donny Xia
e75d4fc87d
convert helm inflator to builtin plugin
2020-10-30 23:18:54 -07:00
Jeff Regan
13c9a2873e
Update comments in multi-transformer
2020-10-27 07:17:14 -07:00
jregan
1d91401772
Simplify use of the Merginator.
2020-08-22 08:07:57 -07:00
jregan
edced4b3f6
Delete newly orphaned code.
2020-08-20 13:12:06 -07:00
Donny Xia
083dccfe91
Update hash result in tests
2020-08-05 11:59:13 -07:00
ageekymonk
c660fd33ae
Avoiding Prefix Transformer for Namespace resource
2020-07-21 18:33:42 +10:00
jregan
c878957d0b
Add a test and temporarily disable some plugin tests.
2020-07-17 08:23:11 -07:00
Donny Xia
897698fb29
Uniform unmarshal function
2020-07-14 17:01:43 -07:00
Donny Xia
7e2d3ff5ab
Reuse tansformer codes
2020-06-18 12:18:37 -07:00
Donny Xia
cea1154cd9
Add exception for "validated-by" label
2020-06-17 14:35:12 -07:00
Donny Xia
4843718a2b
Check modification
2020-06-17 14:35:12 -07:00
Donny Xia
a0c1979798
Add validator to kustomization
2020-06-17 14:35:12 -07:00
Kubernetes Prow Robot
cedcf3ac04
Merge pull request #2168 from pgpx/feature-kustomizationpatch
...
Implement "kind: Component" to support composition
2020-06-03 10:32:11 -07:00
Paul Martin
34a442bbef
Additional tests around reusing the same bases and components
2020-05-28 23:02:31 +01:00
jregan
cf6fd30c73
Fix nondeterminstic failure
2020-05-20 08:30:30 -07:00
jregan
07b679955e
Beef up test.
2020-05-19 18:26:37 -07:00
jregan
e28af71b6f
Add coverage for kusttarget.Load
2020-05-19 17:26:18 -07:00
Paul Martin
c5c53011da
PoC to add Components to a separate components list (instead of resources)
...
If this idea is preferred, the code could really do with a refactor (probably using closures to control the behaviour of accumulate directory)
2020-05-18 19:25:29 +01:00
Paul Martin
1079d8604c
Renamed KustomizationPatch to Component
2020-05-18 19:25:29 +01:00