About template names
Hi!, Is there any restriction about template names?
I took the main.tf file from docker template, copied it to another folder, modified and tried to create a new template, and I'm getting this error:
...
Validation failed.
POST http://192.168.1.10:3000/api/v2/organizations/39b7fb8c-b981-40fd-9752-1a6e05751857/templates: unexpected status code 400: Validation failed.
name: Validation failed for tag "username" with value: "quarkus_node"
...
Then I copied back the modified file to docker folder, execute the update command and works perfectly, so I'm guessing the file is correct. But Coder server doesn't like the template name.
Any clue?
Thanks
5 Replies
Note: "quarkus_node" is the name of the folder where I copied the file, and the intended template name.
can you send me the template file you're using?
Underscores aren't allowed in template names!
That's it! The underscore was the problem. The error message is tricky though.
also there is a max length of 32 I think, for templates and workspaces