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

Data inventory fields are mismatched in policy template

Open warroyo opened this issue 11 months ago • 0 comments

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

warroyo avatar Mar 22 '24 14:03 warroyo