/toml2cm

Primary LanguageGo

Toml2CM


Description

Toml 2 ConfigMap is a tool that help us to migrate Toml files to Kubernetes ConfigMaps in a Helm template 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


Requirements

  • Go: Install go

How to execute it?

go run *.go --file=<fileName>
// Example
go run *.go --file=example.toml

TODO

  • Add ConfigMap header
  • Read all files inside a folder
  • Add tests 👀
  • Show help menu if there's no input

Jose Ramon Mañes