An open API service indexing awesome lists of open source software.

https://github.com/tty47/toml2cm


https://github.com/tty47/toml2cm

Last synced: about 2 months ago
JSON representation

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