Open tyler-adam opened 1 year ago
Thanks for the report.
For maintainers: this was discussed and verified on Slack, would be an interesting fix.
I've noticed the same issue for the Aiven operator, where .
are included as a field name, expecting something like:
myConfig:
field.name: "myname"
In the process of trying to create a jsonnet-lib for the Azure Service Operator v2, I discovered that they label one of their attributes
$propertyBag
. By doing this, the generator trips over itself. Here is an example of the output (trimmed for visibility):There should to be a way for k8s-gen to be aware of invalid characters and fix them however necessary (wrapping keys in quotes, etc - stripping them from variable names).