Bad ApplicationSyncPolicy applied when Sync is choosed (create-delete applied instead)
Closed this issue · 0 comments
dtrouillet commented
Terraform Version, ArgoCD Provider Version and ArgoCD Version
Terraform version: 1.5.7
ArgoCD provider version: 6.1.0
ArgoCD version: 2.10.2
Affected Resource(s)
- argocd_application_set
Terraform Configuration Files
resource "argocd_application_set" "module" {
metadata {
name = "test"
namespace = "argocd"
}
spec {
sync_policy {
applications_sync = "sync"
}
....
}
}
...
Debug Output
Steps to Reproduce
terraform apply
Expected Behavior
the applicationsSync is "sync"
Actual Behavior
the applicationsSync is "create-delete"
Important Factoids
On https://github.com/oboukili/terraform-provider-argocd/blob/b52be2327ddb1ae6bd5c838c6b09b4b520783b20/argocd/structure_application_set.go#L784 the case is bad, it need to be ApplicationsSyncPolicySync
References
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment