Skip to content

Commit

Permalink
feat!: add support to oboukili/argocd v5 (#11)
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: hbollon <hbollon@users.noreply.github.com>
  • Loading branch information
hbollon and hbollon committed Jul 11, 2023
1 parent f7c6553 commit e0ea203
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
18 changes: 14 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
// BEGIN_TF_DOCS
=== Requirements

The following requirements are needed by this module:

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

=== Providers

The following providers are used by this module:

- [[provider_utils]] <<provider_utils,utils>>
- [[provider_null]] <<provider_null,null>>

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

- [[provider_null]] <<provider_null,null>>
- [[provider_utils]] <<provider_utils,utils>>

=== Resources

Expand Down Expand Up @@ -182,15 +186,21 @@ Description: n/a
Description: n/a
// END_TF_DOCS
// BEGIN_TF_TABLES
= Requirements

[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|===

= Providers

[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[provider_utils]] <<provider_utils,utils>> |n/a
|[[provider_argocd]] <<provider_argocd,argocd>> |n/a
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 5
|[[provider_null]] <<provider_null,null>> |n/a
|===

Expand Down
15 changes: 14 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,20 @@ 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 = "20s"
max_duration = "2m"
factor = "2"
}
limit = "5"
}

sync_options = [
"CreateNamespace=true"
Expand Down
3 changes: 2 additions & 1 deletion terraform.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
terraform {
required_providers {
argocd = {
source = "oboukili/argocd"
source = "oboukili/argocd"
version = ">= 5"
}

utils = {
Expand Down

0 comments on commit e0ea203

Please sign in to comment.