Jerome Brette
8fa3861ba3
Fix namereference and stacked kustomization contexts (2/3)
...
- Leverage nameprefix and namesuffix contextual data
2019-07-24 18:02:23 +00:00
Jerome Brette
69c90e3427
Fix namereference and stacked kustomization contexts (1/3)
...
- Update PrefixSuffixTransfomer to add empty prefix and suffix
2019-07-24 10:59:07 -05:00
Kubernetes Prow Robot
5a73f345fd
Merge pull request #1388 from Liujingfang1/patch
...
add example for extended patches
2019-07-23 17:04:16 -07:00
jingfangliu
0e62d759f0
address comments
2019-07-23 16:55:58 -07:00
jingfangliu
b2967d2f77
add example for extended patches
2019-07-23 15:54:25 -07:00
Kubernetes Prow Robot
c23039c07a
Merge pull request #1379 from keleustes/namespace
...
Update Namespace and Name simultaneously
2019-07-23 14:10:14 -07:00
Kubernetes Prow Robot
5747c417c4
Merge pull request #1363 from Liujingfang1/patch
...
update edit fix to convert the old patches to patchesStrategicMerge
2019-07-23 13:16:14 -07:00
jingfangliu
8c53d77111
update edit fix to convert the old patches to patchesStrategicMerge
2019-07-23 10:38:48 -07:00
Jerome Brette
01667cabde
Update Namespace and Name simultaneously (2/2)
...
Add tests combining prefixsuffix and namespace transformers.
2019-07-23 11:04:59 -05:00
Jerome Brette
f649b62629
Update Namespace and Name simultaneously (1/2)
...
- Removed RoleBinding and Webhook specific code in the namespacetransformer.
That code was attempting to perform the task of the namereference
- Updated namereference transformer configuration to suppport the
Webhooks.
- Prevent the namereference from wiping out the namespace value if
no referral candidate was selected
- Added unit tests.
2019-07-23 11:04:52 -05:00
Kubernetes Prow Robot
3a4d025b5c
Merge pull request #1371 from keleustes/nsvar
...
Add namespace to variable definition
2019-07-22 11:04:53 -07:00
Jerome Brette
99eb08eb1e
Add Namespace to var definition to allow disambiguation
2019-07-19 12:08:38 -05:00
Kubernetes Prow Robot
d3f8c0d87f
Merge pull request #1327 from keleustes/residrequals-variables
...
ResId.Equals usable for VariableRef.
2019-07-19 09:41:12 -07:00
Jerome Brette
0bec7b996b
Code review implementation for namespace needed in vars
2019-07-18 19:20:10 -05:00
Jerome Brette
dd5674fe6b
ResId.Equals usable for VariableRef.
...
- Namespace need objRef field in variable declaration
- Add namespace conflict test for variables
The replacement of ResId.GkvnEquals reference by ResId.Equals
highligthed the fact it is no possible yet when looking for
variable targets because the namespace field is not allowed yet.
This commit adds two tests to the namespaces_test.go regarding
that use case.
2019-07-18 19:20:10 -05:00
Kubernetes Prow Robot
33159c26df
Merge pull request #1369 from Liujingfang1/order
...
add ResourceQuota to the order list
2019-07-18 16:35:51 -07:00
Kubernetes Prow Robot
afc7dbebe5
Merge pull request #1326 from keleustes/residequals-patchtransformer
...
Residequals patchtransformer
2019-07-18 13:14:19 -07:00
Jerome Brette
f363acf839
Implement code review changes for ResId.Equals instead of ResId.GkvnEquals
2019-07-18 14:13:51 -05:00
Kubernetes Prow Robot
96d5a7401d
Merge pull request #1365 from richardmarshall/fix_integration_test
...
Fix kustomize install in integration test
2019-07-18 11:56:26 -07:00
jingfangliu
403fa20546
add ResourceQuota and LimitRange to the order list
2019-07-18 11:44:46 -07:00
Richard Marshall
ba4d7ddca8
test: Fix kustomize install in integration test
2019-07-17 20:28:47 -07:00
Jerome Brette
5116e2f210
Improve Transformer with Namespace tests.
...
- Reorganize test into test tables.
- Ensure that every test case, convers SMP and JSONPatch by
using Deployment as kind first and then "MyCRD" as kind.
- Add tests involving namespaces.
- Add tests involving reordering of patches.
2019-07-17 15:44:44 -05:00
Jerome Brette
9e0f198227
Start to phase out usage ResId.GvknEquals where possible
2019-07-17 15:44:44 -05:00
Kubernetes Prow Robot
30b378a924
Merge pull request #1325 from keleustes/residequals-namereference
...
NameReference Transformer needs to account for namespace and cluster wide objects.
v3.0.3
2019-07-17 13:20:13 -07:00
Kubernetes Prow Robot
3a843f1eca
Merge pull request #1362 from Liujingfang1/doc
...
update the latest version in readme
2019-07-17 13:04:14 -07:00
Jerome Brette
9b40f8ab47
Implement code review comments to NameReferenceTransformer changes.
...
- Add comments where code with potentially misleading.
- Rename functions according to comments
2019-07-17 14:10:01 -05:00
jingfangliu
dc6dcd8150
update the latest version in readme
2019-07-17 12:05:12 -07:00
Kubernetes Prow Robot
3cb6c7f1f4
Merge pull request #1349 from yujunz/faq
...
Add FAQ about how to customize configuration
2019-07-17 11:26:11 -07:00
Kubernetes Prow Robot
7632839bc8
Merge pull request #1350 from yujunz/docs/plugins
...
Convert go plugin example to GPG based
2019-07-17 10:40:37 -07:00
Yujun Zhang
c3ea109b59
Update goPluginGuidedExample.md
2019-07-17 08:19:50 +08:00
Jerome Brette
579995dc8a
Address simultaneous transformation of name and namespace
...
Namereference handler needs to address simulatenous change of
name and namespace in ClusterRoleBinding for instance.
2019-07-16 18:17:33 -05:00
Jerome Brette
b43bd5440d
Update Issue 1264 Reproduction Test
2019-07-16 18:17:33 -05:00
Jerome Brette
c4d899f7f3
Improve NameReference Test cases
...
- Add more NameReference Namespace tests
- Address issue when mixing empty/no namespace and default namespace.
- Address ClusterRoleBinding subjects field pointing at multiple namespaces.
2019-07-16 18:17:33 -05:00
Jerome Brette
7998ee7036
Addresses slice case with notNamespaceable objects
2019-07-16 18:17:33 -05:00
Kubernetes Prow Robot
878960d7b1
Merge pull request #1355 from Liujingfang1/patch
...
enable extended patch transformer and add tests
2019-07-16 15:58:34 -07:00
jingfangliu
ed0cfc685b
add test for extended patch with overlapping patches
2019-07-16 15:16:00 -07:00
Kubernetes Prow Robot
b0a7345123
Merge pull request #1359 from keleustes/imagetag
...
Address replacement of digest by ImageTransformer
2019-07-16 13:10:49 -07:00
Jerome Brette
580963ea76
Address replacement of digest by ImageTransformer
...
- See [Issue 1357](https://github.com/kubernetes-sigs/kustomize/issues/1357 )
- Add more plugin tests.
2019-07-16 14:03:56 -05:00
Kubernetes Prow Robot
0707deae95
Merge pull request #1356 from keleustes/droppatch
...
Test tracking issue patchesStrategicMerge elements can be dropped
2019-07-16 10:50:18 -07:00
Yujun Zhang
fb44880b8c
Add back GCP KMS example
2019-07-16 20:10:16 +08:00
Jerome Brette
e5ebca6604
Test tracking issue "patchesStrategicMerge elements can be dropped"
...
- Issue 1354
- $patch: delete is ignored or not depending of the include order
in the kustomization.yaml
2019-07-15 19:02:52 -05:00
jingfangliu
f5fc9acb84
fix local test failures
2019-07-15 18:59:16 -05:00
jingfangliu
28d1bad3cb
fix the ci failure
2019-07-15 18:58:52 -05:00
jingfangliu
6f74419628
fix local test failures
2019-07-15 16:34:13 -07:00
jingfangliu
8121467c1e
fix the ci failure
2019-07-15 16:01:23 -07:00
jingfangliu
a85f297f31
enable extended patch transformer and add tests
2019-07-15 15:45:08 -07:00
Kubernetes Prow Robot
76a7816aeb
Merge pull request #1348 from yujunz/nameref
...
Add storage class name ref
2019-07-15 13:17:25 -07:00
Kubernetes Prow Robot
7872405379
Merge pull request #1336 from richardmarshall/fix_test_flags
...
Remove go testing flags from kustomize help
2019-07-15 13:13:24 -07:00
Kubernetes Prow Robot
6c17a3409f
Merge pull request #1346 from Liujingfang1/patchallkinds
...
add extended patch transformer
2019-07-15 11:45:24 -07:00
Yujun Zhang
f1dbab9dee
Convert go plugin example to GPG based
2019-07-14 11:33:37 +08:00