-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codify fails when the input yaml object names have a dash in it. #45
Comments
Looks like we can safely rename all |
pull requests accepted :) https://github.com/kris-nova/naml/blob/main/codify/codify.go#L140 |
working on it :) |
fixed in #46 |
closed with #46 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
kubectl get deployments -oyaml | naml c Error during codify: unable to auto format code: 88:2: expected identifier on left side of :=2021-08-01T18:41:03-07:00 [Critical ] unable to auto format code: 88:2: expected identifier on left side of :=
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
The text was updated successfully, but these errors were encountered: