terraform-provider-tanzu-mission-control icon indicating copy to clipboard operation
terraform-provider-tanzu-mission-control copied to clipboard

Kubernetes Cluster Resource locals to attribute in resource

Open orenr2301 opened this issue 5 months ago • 0 comments

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

orenr2301 avatar Sep 24 '24 10:09 orenr2301