Currently, it seems like any time certain blocks are added/removed (e.g. destination {} on argocd_project) then it lists all blocks as being removed and re-added.
With ArgoCD projects that have several destinations specified, this makes it very difficult to track what the actual changes are:
I know that other modules have changed from list to map for easier diffs. I'm not sure if maybe using blocks (instead of a map or some other structure) for this is causing the issue here.
Maybe there's also something with how the provider is rendering the pending changes that could be adjusted, like putting the new stuff last (since in this specific example, the only addition is the namespace = "map")
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
Currently, it seems like any time certain blocks are added/removed (e.g.
destination {}
onargocd_project
) then it lists all blocks as being removed and re-added.With ArgoCD projects that have several destinations specified, this makes it very difficult to track what the actual changes are:
Potential Terraform Configuration
I know that other modules have changed from
list
tomap
for easier diffs. I'm not sure if maybe using blocks (instead of a map or some other structure) for this is causing the issue here.Maybe there's also something with how the provider is rendering the pending changes that could be adjusted, like putting the new stuff last (since in this specific example, the only addition is the
namespace = "map"
)References
https://github.com/hashicorp/terraform/issues/21901
Community Note