/yamltool

Well I joined a new company we use kubernetes, first day I had to write the env section of kubemanifest.yml by hand. This tool helps me to copy what's in appsettings.json into a formatted env variable section of a typical kubemanifest.yaml

Primary LanguageRust

yamltoolrs

YAMLToolRS

YAMLToolRS is a FAST and RELIABLE command-line tool for converting various application config files, such as appsettings.json for C#/ASP.NET Core and application.properties for SpringBoot/Java, to Kubernetes env format.

Usage

yamltool <filePath> <language>

Arguments:
<filePath>  Path to the JSON or properties file this will be appsettings.json for .NET(C#) or application.properties for JAVA
<language>  Programming language option (--java or --csharp)

Examples

yamltool examples/csharp/appsettings.json --csharp
yamltool examples/java/application.properties --java