terraform-provider-tanzu-mission-control
terraform-provider-tanzu-mission-control copied to clipboard
Kubernetes Cluster Resource locals to attribute in resource
Is your feature request related to a problem? Please describe.
Yes, the issue is that it is not an appropriate way to configure cluster configs via locals, did someone get lazy on your end?
The locals think it is less flexible, as there are terraform functions/expressions that can only be performed at the resource level. and also make the logic more complex
Describe the solution you'd like
distinguish local things and convert them to attributes under the resource
topology {
version = var.distribution_version
cluster_class = "tanzukubernetescluster"
cluster_variables = jsonencode(local.tkgs_cluster_variables) <====
Describe alternatives you've considered
There are no alternatives, as at the resource dock/README, it put just the way it is, and also, suggestions of what I can do instead of using the locals are not present. people won't waste their time looking for nonnative solution
Additional context
No response