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