aiven/aiven-operator

Replace `.` in fields with an actual object

Closed this issue · 1 comments

xvzf commented

We recently had this issue here: jsonnet-libs/k8s#198

Would it make sense to rather have a nested object instead of having a . in the field?
E.g.:

# ...
test:
  a: avalue
  b: bvalue

instead of

# ...
test.a: avalue
test.b: bvalue

Hi @xvzf !
Thanks for your report, sorry for a long response.
We are going for a code generation in the next release, and this is how the API looks like.
We want to stay as closer to the spec as possible to reduce issues. If we replace those fields, then we need to learn how to convert them back and force. That's undesirable complexity.