Closed imurata closed 4 months ago
Right now, when installing the Tanzu Package, inline_values can only be specified as String or float. https://registry.terraform.io/providers/vmware/tanzu-mission-control/latest/docs/resources/package_install https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/001ba2285c941a691629f1c50e1ae5e1756f7fd2/internal/resources/tanzupackageinstall/spec/cluster_spec.go#L71
inline_values
However, most of the Tanzu Package has structural parameters rather than String or Float.
envoy: service: type: LoadBalancer annotations: {} externalTrafficPolicy: Cluster disableWait: false hostPorts: enable: true http: 80 https: 443 hostNetwork: false terminationGracePeriodSeconds: 300 logLevel: info certificates: duration: 8760h renewBefore: 360h
Therefore, most Tanzu Packages cannot be deployed with the TMC Provider.
Since values is written in YAML, YAML support is desirable. If this is difficult, Json should be supported.
inline_values = jsonencode({ { "certificates": { "duration": "8760h", "renewBefore": "360h" }, "contour": { "configFileContents": {}, "logLevel": "info", "pspNames": "vmware-system-restricted", "replicas": 2, "useProxyProtocol": false }, "envoy": { "hostNetwork": false, "hostPorts": { "enable": true, "http": 80, "https": 443 }, "logLevel": "info", "service": { "annotations": {}, "disableWait": false, "externalTrafficPolicy": "Cluster", "type": "LoadBalancer" }, "terminationGracePeriodSeconds": 300 }, "infrastructure_provider": "vsphere", "namespace": "tanzu-system-ingress" } })
No response
Hi, do you know when this fix is going to get published?
Thanks!
Cc: @ramya-bangera
Is your feature request related to a problem? Please describe.
Right now, when installing the Tanzu Package,
inline_values
can only be specified as String or float. https://registry.terraform.io/providers/vmware/tanzu-mission-control/latest/docs/resources/package_install https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/001ba2285c941a691629f1c50e1ae5e1756f7fd2/internal/resources/tanzupackageinstall/spec/cluster_spec.go#L71However, most of the Tanzu Package has structural parameters rather than String or Float.
Therefore, most Tanzu Packages cannot be deployed with the TMC Provider.
Describe the solution you'd like
Since values is written in YAML, YAML support is desirable. If this is difficult, Json should be supported.
Describe alternatives you've considered
No response
Additional context
No response