Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dj95/kustomize-quick-create
A quick create wizard to create and modify opinionated kustomize deployments.
https://github.com/dj95/kustomize-quick-create
automation kubernetes kustomize rust template wizard
Last synced: 27 days ago
JSON representation
A quick create wizard to create and modify opinionated kustomize deployments.
- Host: GitHub
- URL: https://github.com/dj95/kustomize-quick-create
- Owner: dj95
- License: mit
- Created: 2023-05-08T05:45:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-05T18:40:27.000Z (9 months ago)
- Last Synced: 2024-10-10T18:26:36.174Z (about 1 month ago)
- Topics: automation, kubernetes, kustomize, rust, template, wizard
- Language: Rust
- Homepage:
- Size: 8.98 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
kqc πβΈοΈ
A quick create wizard to create and modify opinionated kustomize deployments.
This tool should help to quickly create and build up kustomize deployments. It features a wizard, which
will let you create the boilerplate configuration and underlying file structure. With a templateing
engine the most important values are already set into the resources, such that only minor further tweaks
should be required for getting the deployment up and running.![Demo GIF of kqc in action](./example/demo.gif)
### π¦ Requirements
- rust
*or*
- nix
- direnv### π Getting started
Clone the repository and make sure the dependencies are installed. You either need rust or nix installed.
With nix use either `nix-shell` or `direnv allow` up to your preferences.
After dependencies are available run `cargo install --path .` to build and install the tool.Then you should be able to call the wizard with `kustomize-quick-create`.
It will detect the kustomize deployment if it exists in the `kubernetes/` subdirectory of the present working dir.### π§ͺ Customizing the templates
Templates are stored in the *templates/* directory of this repository and statically compiled into the binary.
Feel free to tinker around with the templates and customize them to your needs.
Please keep in mind that you need to update the fields of the relating struct in *src/resources* if you change them.
Simply search for the template name in the code base and you should be able to find them.### βοΈ Installation with nix
Add the following code to your overlays. Then kustomize-quick-create can be installed from `pkgs`.
```nix
final: prev: {
kustomize-quick-create = prev.pkgs.rustPlatform.buildRustPackage rec {
version = "0.1.0";
pname = "kustomize-quick-create";src = prev.fetchFromGitHub {
owner = "dj95";
repo = pname;
rev = "f2c811652ab824616fb48cdbc8c78d1e8b83d8c0";
sha256 = "sha256-q6Cu0o5P3Tic3a3H9OOash6HbdJxciNhkKJQxd0WEaU=";
};cargoSha256 = "sha256-Ay96cF3H3l7/yzU5ejOrK96T9WoEaIujiEM285qxMFU=";
};
}
```If you just want to try it with nix, run the following command.
```bash
nix run 'github:dj95/kustomize-quick-create'
```## π€ Contributing
If you are missing features or find some annoying bugs please feel free to submit an issue or a bugfix within a pull request :)
## π License
Β© 2023 Daniel Jankowski
This project is licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.