Skip to content

Commit

Permalink
feat!: add support to oboukili/argocd >= v5 (#10)
Browse files Browse the repository at this point in the history
* feat!: add support to oboukili/argocd >= v5

* docs(terraform-docs): generate docs and write to README.adoc

---------

Co-authored-by: lentidas <[email protected]>
  • Loading branch information
lentidas and lentidas authored Jul 11, 2023
1 parent a7c2d27 commit b4ccf83
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This module must be one of the first ones to be deployed and consequently it nee

The following requirements are needed by this module:

- [[requirement_argocd]] <<requirement_argocd,argocd>> (>= 4)
- [[requirement_argocd]] <<requirement_argocd,argocd>> (>= 5)

- [[requirement_null]] <<requirement_null,null>> (>= 3)

Expand All @@ -76,11 +76,11 @@ The following requirements are needed by this module:

The following providers are used by this module:

- [[provider_null]] <<provider_null,null>> (>= 3)

- [[provider_utils]] <<provider_utils,utils>> (>= 1)

- [[provider_argocd]] <<provider_argocd,argocd>> (>= 4)
- [[provider_argocd]] <<provider_argocd,argocd>> (>= 5)

- [[provider_null]] <<provider_null,null>> (>= 3)

=== Modules

Expand Down Expand Up @@ -136,7 +136,7 @@ Description: Override of target revision of the application chart.

Type: `string`

Default: `"v1.0.1"`
Default: `"v1.0.2"`

==== [[input_helm_values]] <<input_helm_values,helm_values>>

Expand Down Expand Up @@ -222,7 +222,7 @@ Description: ID to pass other modules in order to refer to this module as a depe
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 4
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|[[requirement_null]] <<requirement_null,null>> |>= 3
|[[requirement_utils]] <<requirement_utils,utils>> |>= 1
|===
Expand All @@ -233,7 +233,7 @@ Description: ID to pass other modules in order to refer to this module as a depe
|===
|Name |Version
|[[provider_utils]] <<provider_utils,utils>> |>= 1
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 4
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 5
|[[provider_null]] <<provider_null,null>> |>= 3
|===
Expand Down Expand Up @@ -277,7 +277,7 @@ Description: ID to pass other modules in order to refer to this module as a depe
|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v1.0.1"`
|`"v1.0.2"`
|no
|[[input_helm_values]] <<input_helm_values,helm_values>>
Expand Down
15 changes: 10 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,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 b4ccf83

Please sign in to comment.