jregan
6bbc829593
Add a loader test.
2020-12-09 17:17:21 -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
Natasha Sarkar
deb2b21cbe
added allowresourceidchanges bool to options struct
2020-12-02 18:02:09 -08:00
jregan
a5f3d5c823
Use DepProvider in tests to access kyaml impls.
2020-11-21 14:49:44 -08:00
Donny Xia
98900c43f7
fix invalid managed-by label value
2020-11-16 14:05:21 -08:00
Donny Xia
abc88c56c4
support inline transformer and generator
2020-11-12 15:19:14 -08:00
jregan
a468743b81
Disable helm inflator tests.
2020-11-10 15:22:25 -08:00
Donny Xia
64f8d2ae38
add one more test
2020-11-10 10:25:05 -08:00
Donny Xia
e75d4fc87d
convert helm inflator to builtin plugin
2020-10-30 23:18:54 -07:00
Jeff Regan
119d7cadf5
Merge pull request #3136 from natasha41575/NamespaceabilityFromOpenAPI
...
removed hardcoded list of namespaceable resources
2020-10-26 12:22:36 -07:00
Natasha Sarkar
49dced2e01
removed hardcoded list of namespaceable resources
2020-10-23 11:47:29 -07:00
Donny Xia
62a8a8c57d
check Gvk in roleRef when update name reference
2020-10-19 14:01:13 -07:00
Donny Xia
e695b0534d
Add metadata field to kustomization file
2020-10-05 11:20:41 -07:00
Jeff Regan
2fb8603b2a
Merge pull request #3050 from Shell32-Natsu/deployment-annotation
...
support var ref in deployment template annotations
2020-10-02 14:01:32 -07:00
Donny Xia
74d0d7960e
add option to choose prepend/append in merge
2020-10-02 09:56:59 -07:00
Donny Xia
a4f6fee6c8
support var ref in deployment template annotations
2020-09-30 10:21:03 -07:00
Natasha Sarkar
bd534441ce
fixed issue 2896
2020-09-28 11:01:01 -07:00
Kubernetes Prow Robot
4c48a4ff83
Merge pull request #3033 from Shell32-Natsu/3021
...
fix multiple match issue in rolebinding
2020-09-25 17:22:48 -07: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
Donny Xia
b51e09d5fe
fix multiple match issue in rolebinding
2020-09-23 13:03:12 -07:00
Natasha Sarkar
ce0dba9217
fixed bug in base test
2020-09-21 11:32:26 -07:00
Natasha Sarkar
9abd0119e1
test for issue 2896
2020-09-21 11:25:54 -07:00
Alexey Odinokov
64cbfbe56d
added test for env vars
2020-09-21 06:14:09 +00:00
Donny Xia
f0bc926640
ignore null value in fieldspec
2020-09-14 13:20:20 -07:00
Jeffrey Regan
950c1de46d
Add test representing 2960
2020-09-11 15:22:41 -07:00
Donny Xia
9ca8f4602d
add legacy filter to image tag transformer
2020-09-01 13:06:14 -07:00
Donny Xia
6a7afd8694
fix name reference with prefixsuffix
2020-08-25 12:25:37 -07:00
jregan
e91cdb5eba
Checkpoint
2020-08-23 19:46:08 -07:00
jregan
f051acb83c
Clean up option construction.
2020-08-23 12:06:48 -07:00
jregan
1d91401772
Simplify use of the Merginator.
2020-08-22 08:07:57 -07:00
Jeff Regan
86c93b9fb7
Merge pull request #2829 from msk-/master
...
Bug: name prefix or suffix in base results in incorrect references
2020-08-15 18:02:59 -07:00
Donny Xia
6f782ac8c3
fix linter issue
2020-08-12 12:25:49 -07:00
Donny Xia
e5bc644653
change the test for blanks in string
2020-08-12 12:17:56 -07:00
msk-
99d7ad6dc9
Made test pass- whoops
2020-08-12 11:53:47 +01:00
msk-
345dbc83e3
Implemented PR feedback
2020-08-12 11:49:24 +01:00
Donny Xia
1366e0344a
Add test for long line break
2020-08-11 13:43:18 -07:00
msk-
b71b36a213
Added test for name suffix in base not generating expected reference name
2020-08-11 10:02:25 +01:00
Jeff Regan
686e97f2fe
Merge pull request #2810 from Shell32-Natsu/fieldspec-empty
...
fix panic when fieldspec refers an empty value
2020-08-07 11:50:14 -07:00
Donny Xia
868a226e4e
fix typo
2020-08-07 11:11:08 -07:00
Donny Xia
a2693d0249
fix panic when fieldspec refers an empty value
2020-08-07 10:47:25 -07:00
Donny Xia
d59d0401f4
Keep empty map in kustomize output
2020-08-06 13:21:38 -07:00
Donny Xia
083dccfe91
Update hash result in tests
2020-08-05 11:59:13 -07:00
Jeff Regan
dcab3cbb5f
Merge pull request #2739 from Shell32-Natsu/rolebinding
...
Role binding for serviceaccount across namesapce.
2020-07-22 11:45:05 -07:00
jregan
ef924a5c9c
Convert image transformer to kyaml.
2020-07-22 11:10:52 -07:00
Donny Xia
15bc399d5a
Support RoleBinding for ServiceAccount across namespace
2020-07-22 11:01:23 -07:00
Jeff Regan
6717bbd36b
Merge pull request #2750 from Shell32-Natsu/rolebinding-test
...
Add test for role binding across namespace.
2020-07-22 10:54:17 -07:00
Donny Xia
92e1d452b7
Add test for role binding across namespace.
2020-07-22 10:00:34 -07:00
ageekymonk
c660fd33ae
Avoiding Prefix Transformer for Namespace resource
2020-07-21 18:33:42 +10:00
Jeff Regan
27b2c7f294
Update formatting of component_test.go
2020-07-17 18:31:54 -07:00
jregan
c878957d0b
Add a test and temporarily disable some plugin tests.
2020-07-17 08:23:11 -07:00