Yujun Zhang
ed920afb2e
Support setting command in go-getter plugin
...
This allows one to use non-kustomization remote source
2019-09-02 14:53:18 +08:00
Yujun Zhang
ed91bce275
Add example plugin for go-getter
2019-08-30 11:14:46 +08:00
Jeff Regan
a9f58383d8
Merge pull request #1460 from richardmarshall/namespace_conflicts
...
Detect ID conflicts in namespace transformer
2019-08-23 10:54:36 -07:00
jregan
bc303c4629
in plugin executor remove unnecessary code and improve error messages
2019-08-19 20:23:07 -07:00
jregan
fa834f9541
Fix non-travis tests.
2019-08-19 16:29:00 -07:00
Richard Marshall
24c173a49b
Detect ID conflicts in namespace transformer
2019-08-19 08:55:54 -07:00
Vlad Gorodetsky
bafd6b5423
Fix typo in patches definition
2019-07-30 14:52:02 +03:00
Kubernetes Prow Robot
5426888df4
Merge pull request #1405 from Liujingfang1/inlinepatch
...
add inline patch support for Strategic Merge Patch and JSON patch
2019-07-29 14:28:49 -07:00
jingfangliu
35481ec6d9
add inline patch support for Strategic Merge Patch and JSON patch
2019-07-29 14:10:57 -07:00
Kubernetes Prow Robot
6c92c30e94
Merge pull request #1402 from damienr74/currentid-replicas
...
Allow replicas to find modified names.
2019-07-29 12:54:47 -07:00
Damien Robichaud
02f6b3ec98
Allow replicas to find modified names.
...
Also allows to test for modified resmaps instead of directly loading
them.
2019-07-26 18:00:59 -07:00
jingfangliu
b4038a6cd2
add testting for patch transformers
2019-07-26 14:02:52 -07:00
Jerome Brette
2faf4a491b
Force the namespace value for the "default" service object.
...
The clusterrolebinding and rolebinding is pointing at a resource
which is not listed in the kustomize
2019-07-25 22:43:59 +00:00
jingfangliu
fc78917191
support strategic merge patch with $patch: delete
2019-07-24 12:46:33 -07: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
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
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
Jerome Brette
f363acf839
Implement code review changes for ResId.Equals instead of ResId.GkvnEquals
2019-07-18 14:13:51 -05: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
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
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
jingfangliu
28d1bad3cb
fix the ci failure
2019-07-15 18:58:52 -05:00
jingfangliu
8121467c1e
fix the ci failure
2019-07-15 16:01:23 -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
jingfangliu
3c05e2d664
add extended patch transformer
2019-07-12 14:34:08 -07:00
jingfangliu
145d07363f
add labels in test patch files
2019-07-12 08:56:34 -07:00
jingfangliu
33fff655db
move strategic merge patch transformer to a builtin transformer
2019-07-11 13:39:30 -07:00
Richard Marshall
095333ffb1
Update references to NewEnvForTest
2019-07-10 20:43:50 -07:00
Jian Qiu
483188ba89
Generate updated ns transformer
2019-07-10 11:07:31 +08:00
Jian Qiu
c912baeb3a
Enable ns transformer for webhook
...
Add namespace transformer for ValidatingWebhookConfiguration
and MutatingWebhookConfiguration
2019-07-09 13:32:33 +08:00
Jeffrey Regan
0fe95a2f74
Add another resmap test.
2019-07-01 11:17:46 -07:00
jregan
5de0673db1
Push json transform code down to plugin.
2019-06-30 17:30:52 -07:00
Seth Pollack
2126b6cf23
use ObjectMeta instead of name and namespace fields
2019-06-29 23:30:50 -04:00
Jeffrey Regan
233b3613ae
Add ObjectMeta type.
2019-06-28 14:39:56 -07:00
Jeffrey Regan
4d399ad89c
More plugin docs.
2019-06-26 16:37:26 -07:00
jregan
cc0fffc67b
Fix some random Go nits.
2019-06-25 20:46:56 -07:00
Jerome Brette
74f5e74b89
Consolidate IsClusterKind and IsNamespaceableKind method to avoid duplication
2019-06-25 13:46:49 -05:00
jregan
a7df00c07a
Starting v3 release for plugin developers.
...
[doc]: https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher
Per this Go modules [doc] a repo or branch that's
already tagged v2 or higher should increment the major
version (e.g. go to v3) when releasing their first Go
module-based packages.
At the moment, the kustomize repo has these top level
packages in the sigs.k8s.io/kustomize module:
- `cmd` - holds main program for kustomize
Conceivably someone can depend on this
package for integration tests.
- `internal` - intentionally unreleased subpackages
- `k8sdeps` - an adapter wrapping k8s dependencies
This exists only for use in pre-Go-modules kustomize-into-kubectl
integration and won't live much longer (as everything involved is
switching to Go modules).
- `pkg` - kustomize packages for export
This should shrink in later versions, since
the surface area is too large, containing
sub-packages that should be in 'internal'.
- `plugin` - holds main programs for plugins
This PR changes the top level go.mod file from
```
module sigs.k8s.io/kustomize
```
to
```
module sigs.k8s.io/kustomize/v3
```
and adjusts all import statements to
reflect the change.
2019-06-23 15:05:59 -07:00
jregan
a722cca80a
Remove SopsEncodedSecretsPlugin
2019-06-23 09:46:45 -07:00
Arnaud Delobelle
d3f50695b4
Fix configmap name in test
2019-06-22 08:46:22 +01:00
Arnaud Delobelle
5a9a6ab0f6
Fix typo in test
2019-06-22 08:27:23 +01:00
Arnaud Delobelle
b86e78b7a9
Add test for regression
2019-06-22 08:09:39 +01:00
Arnaud Delobelle
93db0ef3e9
Iterate over fieldspecs for name tranformations
2019-06-21 21:08:59 +01:00
Jeffrey Regan
bcb844663f
A secret generator using sops.
2019-06-19 18:55:50 -07:00
Jeffrey Regan
3325852aab
Commit generated code for image and namespace transformers.
2019-06-19 18:52:24 -07:00
Jeff Regan
c437d99c5f
Merge pull request #1210 from monopole/pushTagTransformCodeToPlugin
...
Push image tag transform code to plugin.
2019-06-19 18:26:31 -07:00
Jeffrey Regan
2eccf67b1c
Push namespace transformer code to plugin.
2019-06-19 12:57:02 -07:00