Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Translate snake case fields to camel case #13

Open
negz opened this issue Mar 19, 2021 · 1 comment
Open

Translate snake case fields to camel case #13

negz opened this issue Mar 19, 2021 · 1 comment

Comments

@negz
Copy link
Member

negz commented Mar 19, 2021

Terraform convention is to use snake case field names, while Kubernetes (and Crossplane) is to use camel case. It seems like we may need to convert the JSON struct tags of our generated types (and be able to map them back to the original snake case field names). There are modules that can help with this, e.g. https://github.com/iancoleman/strcase.

@grantgumina
Copy link

If we were to put our Terraform providers through a conformance suite, they wouldn't pass because of this camel case issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants