vmware / terraform-provider-tanzu-mission-control

Terraform Provider for VMware Tanzu Mission Control
https://registry.terraform.io/providers/vmware/tanzu-mission-control/latest/docs
Mozilla Public License 2.0
37 stars 33 forks source link

Data inventory fields are mismatched in policy template #389

Open warroyo opened 8 months ago

warroyo commented 8 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

github-actions[bot] commented 1 week ago

'Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!'