Closed fkautz closed 2 years ago
Looks like we can safely rename all -
characters in k8s object names to _
in go. K8s does not allow _
and go does not allow -
in variable names.
pull requests accepted :)
https://github.com/kris-nova/naml/blob/main/codify/codify.go#L140
working on it :)
fixed in #46
closed with #46 released binaries with the patch https://github.com/kris-nova/naml/releases/tag/0.2.4
Took the example stateless app from https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/ and ran it against naml.
Ran this through naml:
I disabled gofmt to see the actual error and found this:
We should probably trim illegal characters, though this may in rare circumstances cause a duplicate name. e.g. two deployments on the same system with names
nginx-deployment
vsnginxdeplolyment