Jingfang Liu
e9a3f9f5f6
address comments
2019-04-08 15:17:18 -07:00
Jingfang Liu
826affb8dd
generate configmap for pruning
2019-04-08 14:10:49 -07:00
jregan
ffc16d51e0
Add secret generator.
2019-04-06 18:38:22 -07:00
jregan
b32e041bfe
Remove some duped code.
2019-04-06 16:14:12 -07:00
jregan
16fe7ced6a
Cleanup plugin builds.
2019-04-06 13:16:46 -07:00
Jeffrey Regan
99391157ec
Add goplugin KV generator example.
2019-03-28 09:55:44 -07:00
Seth Pollack
9fc4d388ce
add builtin envfiles plugin
2019-03-18 13:58:38 -04:00
Jeffrey Regan
3a7c8a03f4
Make builtin the default pluginType
2019-03-18 10:21:24 -07:00
Seth Pollack
a8465c95e1
add builtin files plugin
2019-03-17 17:22:52 -04:00
Seth Pollack
7764dee59d
Merge branch 'master' into builtins
2019-03-17 17:01:06 -04:00
jregan
103c1b3a4f
Put goplugins behind flag.
2019-03-17 13:39:48 -07:00
Seth Pollack
29cbec37b8
move parse helpers to util
2019-03-17 12:34:52 -04:00
Seth Pollack
1bd7afe6e7
fix linter
2019-03-17 08:53:49 -04:00
Seth Pollack
388d5c2d7c
add builtin plugins
2019-03-16 21:21:15 -04:00
Seth Pollack
5c4719651e
honor XDG_CONFIG_HOME
2019-03-16 20:46:37 -04:00
Seth Pollack
56965a0046
fix test
2019-03-15 17:33:17 -04:00
Seth Pollack
18f6328284
add secret and configmap generator plugins
2019-03-15 14:28:18 -04:00
jregan
c06b95077d
Secret/configmap factory cleanup.
2019-03-15 09:25:59 -07:00
jregan
d4d993a53c
Add more resid test coverage.
2019-02-16 14:26:43 -08:00
Andrew Lavery
3118ccfd05
add tests for *List kinds and empty lists
2019-02-12 12:45:28 -08:00
Andrew Lavery
fdba7df3c1
if the kind matches '*List$', treat it as a list
2019-02-12 12:28:08 -08:00
jregan
1a03dcabde
Test missing file report
2019-02-10 15:37:11 -08:00
Jeffrey Regan
7c8db24656
Rename kv.KVPair to kv.Pair
2019-02-06 16:45:44 -08:00
Seth Pollack
e41ca934ac
move package and add tests
2019-02-05 15:38:52 -05:00
Seth Pollack
e14ebc0adf
refactor kv pairs
2019-02-04 17:19:57 -05:00
Jingfang Liu
84057436d6
Combine generatorArgs and generatorOptions into options of Resource
2019-01-31 15:32:32 -08:00
Andrew Lavery
1997606372
add empty objects test for kunstruct SliceFromBytes
2019-01-29 13:17:03 -08:00
Andrew Lavery
209b115b7c
ignore yaml files that do not include any entries
2019-01-29 13:17:03 -08:00
jregan
d141b2421c
DataSources is now common to Secrets and ConfigMaps.
2019-01-22 18:57:11 -08:00
ryane
87411590c5
configmap binarydata comments and small tweaks
...
the BinaryData map is nil until the generator finds a file with contents that
needs injected into the BinaryData field of the configmap
2019-01-17 13:19:06 -05:00
ryane
d4170797ae
configmap binarydata support
2019-01-17 13:12:46 -05:00
Jingfang Liu
f7c34ccb52
Remove filesystem from ConfigMapGenerator and SecretGenerator
2019-01-16 13:33:06 -08:00
Jingfang Liu
2fa4a34589
replace commands/envcommand by DataSource in SecretGenerator
2019-01-16 11:17:34 -08:00
hyww
4b25963c93
List of strategic merge patches ( #637 )
...
* support List of strategic merge patches
* add test for List of patches
* handle List in SliceFromBytes
* add test for List of patches with anchor/reference
* reorganize kunstruct validate
2018-12-20 10:08:18 -08:00
Jeffrey Regan
d4ba22191a
Avoid unnecessary shell execution in secretFactory.
2018-12-17 11:01:18 -08:00
Jeffrey Regan
29694e5b6a
Add test for secretfactory.
2018-12-17 10:56:22 -08:00
Jeffrey Regan
cbcc976828
Extract common generator args to common type.
2018-12-07 13:27:19 -08:00
Jeff Regan
1ce1b82f6f
Merge pull request #599 from tomaszkiewicz/generators-namespace
...
Add namespace for config map and secret generators
2018-12-07 12:48:11 -08:00
Jeffrey Regan
108b3e497b
Require relocatable kustomizations and fix some nits.
2018-12-07 10:46:35 -08:00
luktom
6ad5d9f55b
Add namespace for config map and secret generators
2018-12-05 11:36:23 +01:00
Jingfang Liu
a62d15e746
improve error message when failing to find an object to patch
2018-12-03 09:30:31 -08:00
k8s-ci-robot
6757efe290
Merge pull request #547 from Liujingfang1/base_var
...
POC: allow accessing labels and annotations in vars
2018-11-22 15:32:36 -08:00
jregan
4f9d00c021
Enforce relocatabile kustomizations.
2018-11-22 09:07:05 -08:00
Jingfang Liu
51e9fec65d
allow accessing labels and annotations in vars
2018-11-13 15:56:06 -08:00
Jeffrey Regan
d04877a9e7
Simplify some code and add TODOs.
2018-11-07 13:58:14 -08:00
Jeffrey Regan
d05bb6b199
Add/fix some documentation and vars names.
2018-11-07 12:36:25 -08:00
Jingfang Liu
5947f696ff
make sure the objects loaded have name and kind
2018-10-29 14:59:56 -07:00
jregan
793577d044
Consult history in fileloader.
...
Fixes #366
To reproduce #366 , add
```
bases:
- .
```
to `examples/helloWorld/kustomization.yaml`, attempt to build it, and enjoy the stack overflow.
This PR fixes this by adding history to file loaders,
allowing one to avoid cycles in overlay->base
relationships. To make entry points clearer, this PR
exposes only two public ways to make a fresh
(no-history) loader
* rooted at `/`
* rooted at the process's current working directory.
When making a new loader from an existing loader,
retaining history along an overlay trace, the only
allowed use is to go deeper into a file hierarchy, or
go up and over to a never before visited sibling. This
fix can probably be defeated by devious symbolic links.
2018-10-29 11:10:21 -07:00
jregan
885c1952a4
Improve test coverage.
2018-10-28 13:52:25 -07:00
Benjamin Elder
76ba38cec5
make k8sdeps.NewFactory() importable
2018-10-25 17:21:58 -07:00