github krisnova/naml v0.2.1
0.2.1 with "codify" in alpha

latest releases: v1.0.3, v1.0.2, v1.0.1...
3 years ago

Releasing the new codify feature. This feature is still in alpha. Use responsibly.

There is a new (alpha) feature codify that will attempt to generate as much go code as possible for existing Kubernetes YAML.

You can pipe valid Kubernetes .yaml to naml codify and it will do it's best to generate as much code as possible for you. This will work best if you know what you are doing and just want a place to get started coding.

Currently the following types are supported. If there is a type that you are looking for that isn't here feel free to open a pull request or submit an issue and I will add it as soon as I can.

  • Service
  • ConfigMap
  • Deployment
  • StatefulSet
  • DaemonSet
  • Deployment
  • Pod
  • List

You can use the codify feature like this:

kubectl get deploy -oyaml | naml codify > main.go
cat configmap.yaml | naml codify > main.go
helm template chart | naml codify > main.go

Don't miss a new naml release

NewReleases is sending notifications on new releases.