Skip to content

Commit

Permalink
feat!: add support to oboukili/argocd v5
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Jul 10, 2023
1 parent 96e784f commit fa585f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,19 @@ resource "argocd_application" "this" {
}

sync_policy {
automated = var.app_autosync
automated {
prune = var.app_autosync.prune
self_heal = var.app_autosync.self_heal
allow_empty = var.app_autosync.allow_empty
}

retry {
backoff = {
duration = ""
max_duration = ""
backoff {
duration = "20s"
max_duration = "2m"
factor = "2"
}
limit = "0"
limit = "5"
}

sync_options = [
Expand Down
2 changes: 1 addition & 1 deletion terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
argocd = {
source = "oboukili/argocd"
version = ">= 4"
version = ">= 5"
}
utils = {
source = "cloudposse/utils"
Expand Down

0 comments on commit fa585f6

Please sign in to comment.