msk-
7ac37867dc
tidy-up, added desired behaviour
2021-01-19 18:00:02 +00:00
msk-
d8f2d2256d
Fixed test
2021-01-19 17:57:42 +00:00
msk-
463b776486
Initial test commit
2021-01-19 17:41:44 +00:00
Jeff Regan
cbbcfde99d
Update multiplepatch_test.go
2021-01-16 20:43:57 -08:00
monopole
065c2b861a
Fix unfiled bug; don't quote port numbers.
2021-01-16 16:56:48 -08:00
monopole
b8702561ef
Add test for issue 3449
2021-01-16 16:45:13 -08:00
monopole
45b1bf17d3
Annotate decisions on issue 3304 in api.
2021-01-16 08:08:52 -08:00
monopole
cb42142161
Fix api tests that accomodated bad label and anno quoting.
2021-01-15 17:37:46 -08:00
Kubernetes Prow Robot
eb8dc5e20a
Merge pull request #3462 from mikhail-nikitin/master
...
$patch: delete of not existing elements
2021-01-15 14:23:43 -08:00
Mikhail Nikitin
f6ddea435c
Make test file paths consistent and relative
...
Signed-off-by: Mikhail Nikitin <mikhail.nikitin@ispringsolutions.com >
2021-01-15 22:50:23 +03:00
monopole
2cb972de3b
Rename id annotations to build annotations.
2021-01-15 06:43:13 -08:00
monopole
fabaf35c72
Add test covering pod disruption budget treatment.
2021-01-15 06:09:52 -08:00
Mikhail Nikitin
e13f8803eb
Add test case of deleting not existing elements
2021-01-15 00:08:49 +03:00
monopole
b41df2293b
Add another test covering fix of 3412
2021-01-14 11:32:34 -08:00
monopole
1edf9b630c
Update configmap test with quotes fixed.
2021-01-14 11:01:37 -08:00
Jeff Regan
e92d048af2
Merge pull request #3441 from natasha41575/namePrefixNamespaceBehavior
...
Update name references by checking both the original and current namespaces
2021-01-13 16:21:05 -08:00
monopole
bb41d018b5
Add more tests and explain some strange quotes.
2021-01-13 15:49:12 -08:00
Donny Xia
64beee22e9
fix GetFieldValue cannot handle slice index
2021-01-13 14:14:01 -08:00
monopole
c68cf40d75
Add a test that only loads an annotated resource.
2021-01-13 10:56:50 -08:00
Natasha Sarkar
d54bc674f2
Update name references by checking both the original and current namespaces
2021-01-11 18:08:52 -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
monopole
14a1a0e4a8
Fix 3424 by avoiding a JSON round trip
2021-01-10 20:39:01 -08:00
Jeff Regan
e5e19f7c09
Merge pull request #3431 from Shell32-Natsu/newline
...
keep \n in the end of resource yaml
2021-01-10 12:51:36 -08:00
monopole
30dcf38609
Add var ref replacement tests and more doc.
2021-01-10 09:16:52 -08:00
monopole
769f65d6c4
Short circuit anno/label transformer for performance.
2021-01-08 18:02:58 -08:00
Donny Xia
378eaedc82
keep \n in the end of resource yaml
2021-01-08 15:36:36 -08:00
monopole
8c6a9f6495
Move plugin lister to avoid import cycle.
2021-01-07 18:46:04 -08:00
monopole
69cade143f
Add test for issue 3424
2021-01-06 16:23:12 -08:00
Jeff Regan
979fe3b457
Merge pull request #3401 from monopole/close3393
...
Regression coverage for configmap generation.
2020-12-28 13:09:37 -08:00
jregan
c113c41c9c
Regression coverage for configmap generation.
2020-12-28 09:53:34 -08:00
jregan
99c9edfc3d
Drop close in timed call.
2020-12-28 08:31:42 -08:00
jregan
24c4c66403
Close 3343
2020-12-26 10:43:58 -08:00
jregan
dd1df5a30e
Remaining problems.
2020-12-26 09:28:01 -08:00
jregan
eb26d79fa0
Isolate patch conflation problem to one test.
...
See #3394
2020-12-26 08:41:48 -08:00
jregan
1426137883
Isolate scalar quoting oddities to one test set.
...
The apimachinery code path, in its final marshalling
for output, calls Marshall
https://github.com/go-yaml/yaml/blob/v2/yaml.go#L199
This code path (via apimachinery Unstructured types)
has no JSON schema tags
https://yaml.org/spec/1.2/spec.html#id2803311
so it adds quotes to values that smell like
booleans and ints (e.g. `false` becomes `"false"`).
The kyaml code path, OTOH, uses such tags,
so generally does not quote ints and booleans.
This PR isolates this difference in behavior to
one set of tests (using data fields in configmaps
in api/krusty/configmaps_test.go) so that
they don't confuse other tests that cover
completely different behaviors.
2020-12-23 17:08:25 -08:00
jregan
8b97274af3
More merge tests, clearer method names.
2020-12-22 17:26:12 -08:00
jregan
9ddf0fe304
Eliminate extraneous label and anno maps.
2020-12-22 08:37:40 -08:00
Jeff Regan
8a952a1b26
Merge pull request #3384 from monopole/badBlank
...
Fix roleref test failing under enableKyaml
2020-12-22 06:47:55 -08:00
jregan
fff484e98b
Fix test failing under enableKyaml
2020-12-22 06:24:27 -08:00
jregan
735befef19
Add kunstruct impl of Get/SetDataMap, replace Resource.Merge
2020-12-21 07:22:03 -08:00
jregan
c32a809dbd
Fix formatting nit with enableKyaml
2020-12-17 11:21:46 -08:00
jregan
bd27d5f8bb
Fix apiversion slash
2020-12-17 08:42:15 -08:00
JaredTan95
2361b70967
fix unit test
2020-12-16 10:05:04 +08:00
JaredTan95
97402f1136
update crd_test.go api version.
2020-12-15 12:20:10 +08:00
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