vmware / terraform-provider-tanzu-mission-control

Terraform provider to manage resources of Tanzu Mission Control
Mozilla Public License 2.0
38 stars 31 forks source link

Data inventory fields are mismatched in policy template #389

Open warroyo opened 5 months ago

warroyo commented 5 months ago

Describe the bug

The version and kind fields are not mapped correctly within the custom policy template resource. this causes them to be submitted to the api incorrectly

https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/3681696ec85275684c3a334e24235c66fe90536c/internal/resources/custompolicytemplate/converter_mapping.go#L29-L30

Reproduction steps

  1. create a tanzu-mission-control_custom_policy_template
  2. add data inventory
  3. check the template in TMC, you will see that the fields are flipped.

Expected behavior

kind anf version are set correctly

Additional context

No response