Split multidoc yaml formatted kubernetes descriptors to a set of single resource files
Project description
kubesplit
Split multidoc yaml formatted kubernetes descriptors to a set of single resource files
Free software: Apache Software License 2.0
Documentation: https://github.com/looztra/kubesplit
Features
Invalid Kubernetes resources are ignored
Empty resources are ignored
Each resource found in the input is stored in a file with a name reflecting the name of the resource and its _kubernetes_ kind
Cluster-wide resources (namespaces, clusterroles, clusterrolebindings) are stored in the root directory of the output, namespaced resources are stored in a subdirectory named like the namespace
By default, resources are prefixed
By default, quotes are preserved, use –no-quotes-preserved to disable quotes unless needed (for boolean and numbers if they were provided in the input as for the moment Kubesplit is not aware of the fact that only kubernetes annotations and environment variables require string)
By default, dash elements in list are pushed inwards, you can disable this behaviour with the -d/–no-dash-inwards option
Comments are preserved
The output directory will be created if it doesn’t exist (if the user running the command as sufficient rights)
You can clean (delete files and directories existing before running kubesplit) the output directory with the -c/–clean-output-dir (use at your own risks)
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Acknowledgements
Dependencies scanned by PyUp.io
History
0.1.0 (2019-06-16)
First release on PyPI.
0.2.0 (2019-06-16)
Fix yaml formatting application
Allow unprefixed resource files
Support for ReplicaSets order
0.3.0 (2020-05-17)
- refactoruse the newly available yamkix module and rely on its configuration and writer helpers that make all the yaml writing options work as expected (some of them were not working)
now kubesplit can also deal with comments!
fix #5 (deal with Lists)
chore(CI): introduce some integration tests
0.3.1 (2020-05-17)
dummy release so that the history is updated on PyPi
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for kubesplit-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d79e6f99c493491a2d111259e2d2e7609fa7665acaa221613536d8c55cb9717 |
|
MD5 | 13ec7d282fa7d15288f8417605c7d325 |
|
BLAKE2b-256 | 4f527c1c4631ec155bf12a518066e15678833b3f3f8c25e3216fdca32c7a2efb |
Hashes for kubesplit-0.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2c451115396bc5a7455fde6a4239441b54950291750946760474fc5e6311e1 |
|
MD5 | 27a0e22f40405aafbd70465883c027f5 |
|
BLAKE2b-256 | f23eb8e32a20f0d1c0db74eb14035cfc4dc168087cbda329f4bc0584ee06f58f |