https://github.com/tty47/toml2cm
https://github.com/tty47/toml2cm
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tty47/toml2cm
- Owner: tty47
- Created: 2023-02-02T20:08:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T16:53:50.000Z (over 2 years ago)
- Last Synced: 2025-02-14T10:43:42.791Z (3 months ago)
- Language: Go
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toml2CM
---
## Description
Toml 2 ConfigMap is a tool that help us to migrate Toml files to [Kubernetes ConfigMaps](https://kubernetes.io/docs/concepts/configuration/configmap/) in a
[Helm template](https://helm.sh/docs/chart_best_practices/templates/) way.This tools was created with the goal of migrating `toml` configurations to
ConfigMaps in an easy way and removing the toil.---
## How does it work?
It has some flags (currently one), where we can specify the file to the path
that we would like to convert.
It reads the `toml` file and parse it line by line, generating a new one with
a ConfigMap format.---
## Sources
- [Kubernetes ConfigMaps](https://kubernetes.io/docs/concepts/configuration/configmap/)
- [Helm template](https://helm.sh/docs/chart_best_practices/templates/)---
## Requirements
- Go: Install go
## How to execute it?
```go
go run *.go --file=
// Example
go run *.go --file=example.toml
```---
## TODO
- [x] Add ConfigMap header
- [x] Read all files inside a folder
- [ ] Add tests 👀
- [ ] Show help menu if there's no input---
Jose Ramon Mañes