Re-design APIs for v1alpha2 [was: backendConfig/backendConfigsFrom naming] #306
artem-nefedov
started this conversation in
General
Replies: 3 comments 2 replies
-
Definitely yes. It is confusing, so I'll re-design this part in |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd like to use this opportunity to start discussing what the v1alpha2 would look like. |
Beta Was this translation helpful? Give feedback.
0 replies
-
At least there are 2 parts of the API need to be addressed.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe it's just me, but I found the naming of
backendConfig
andbackendConfigsFrom
somewhat confusing.Based on the names, and following similar existing patterns (e.g.
env
/envFrom
,vars
/varsFrom
), you would think thatbackendConfigsFrom
may let you get the values for the same fields that exist inbackendConfig
(configPath, customConfiguration, etc.) from a ConfigMap/Secret. However, what it actually does is allow you to pass values for the actual terraform backend.I had to look at the unit tests to figure out how it actually works.
The fact that
backendConfigsFrom
(and most of child fields inbackendConfig
) don't have adescription
property in CRD also contributed to my confusion.Not saying that it should be renamed. Just expanding docs section on custom backend may be good enough.
Beta Was this translation helpful? Give feedback.
All reactions