Comments (3)
Hey!
The templating engine is the one from Go itself. I'll see if there are docs on what sorts of namings it supports, but I don't think I can do much about the errors that it throws without first performing a lot of custom validation.
Thanks for filing the issue :-)
Edit: Valid identifier names are documented here in the Golang specification. The unicode_letter
type includes valid unicode letters and digits, as well as the underscore, but no hyphen.
I'll see if I can prominently add this to the docs as a part of #67
from kontemplate.
Ah cheers. Yeah I reckoned it was from Go. Still like you mentioned, it would be nice just to have it somewhere in the documentation so users are aware, since
template:
metadata:
labels:
lala-lala: lala
is valid yaml, and k8s seems to allow it with the flag --dry-run. Also, k8s users aren't expected to be familiar with Go in general.
from kontemplate.
That should work fine though, you can have lisp-case in the output just not in the names of the (user-defined) variables.
from kontemplate.
Related Issues (20)
- Interpolating yaml as a template variables HOT 1
- Kubectl errors not revealed by kontemplate apply HOT 3
- insertFile parameteres or function HOT 2
- Templating for global variables HOT 7
- Add change cause for "Kontemplate apply" HOT 2
- Version 1.6 values vs global HOT 22
- Allow specifying the kubectl executable HOT 4
- [Feature] Ability to exclude some resources (or files) from template processing HOT 5
- kontemplate create does not send everything to kubectl HOT 3
- allow passing variables from command line HOT 1
- Not able to use all sprig functions HOT 4
- 1.6 global settings work differently from 1.5 global settings HOT 2
- Can't access sub-values in the new default function HOT 5
- A way to apply config with options (--as-admin, --as-group) HOT 2
- Override nested variables HOT 3
- Ability to resuse the template vairable within the master template and k8s resources HOT 1
- Please make a new release HOT 2
- Help me to beat my issue HOT 1
- Add support for null checks HOT 1
- Wrong term in cluster config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kontemplate.