terraform-provider-tanzu-mission-control
terraform-provider-tanzu-mission-control copied to clipboard
Data inventory fields are mismatched in policy template
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
- create a
tanzu-mission-control_custom_policy_template
- add data inventory
- 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