Skip to content

Commit

Permalink
feat!: add support to oboukili/argocd v5 (#74)
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 <[email protected]>
  • Loading branch information
hbollon and hbollon authored Jul 11, 2023
1 parent 589e3bc commit 1c0660f
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 30 deletions.
16 changes: 8 additions & 8 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Below you will only find the technical reference automatically generated from th

The following requirements are needed by this module:

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

- [[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> (>= 2)

Expand All @@ -40,14 +40,14 @@ The following providers are used by this module:

- [[provider_random]] <<provider_random,random>> (>= 3)

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

- [[provider_kubernetes]] <<provider_kubernetes,kubernetes>> (>= 2)

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

- [[provider_helm]] <<provider_helm,helm>>

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

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

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

Type: `string`

Default: `"v4.0.0"`
Default: `"v4.0.1"`

==== [[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>

Expand Down Expand Up @@ -232,7 +232,7 @@ Description: The admin password for Grafana.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 4
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|[[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> |>= 2
|[[requirement_null]] <<requirement_null,null>> |>= 3
|[[requirement_random]] <<requirement_random,random>> |>= 3
Expand All @@ -244,12 +244,12 @@ Description: The admin password for Grafana.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[provider_random]] <<provider_random,random>> |>= 3
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 4
|[[provider_kubernetes]] <<provider_kubernetes,kubernetes>> |>= 2
|[[provider_random]] <<provider_random,random>> |>= 3
|[[provider_utils]] <<provider_utils,utils>> |>= 1
|[[provider_helm]] <<provider_helm,helm>> |n/a
|[[provider_null]] <<provider_null,null>> |>= 3
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 5
|===
= Resources
Expand Down Expand Up @@ -296,7 +296,7 @@ Description: The admin password for Grafana.
|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v4.0.0"`
|`"v4.0.1"`
|no
|[[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>
Expand Down
8 changes: 4 additions & 4 deletions aks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

The following requirements are needed by this module:

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

- [[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> (>= 2)

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

Type: `string`

Default: `"v4.0.0"`
Default: `"v4.0.1"`

==== [[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>

Expand Down Expand Up @@ -215,7 +215,7 @@ Description: The admin password for Grafana.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 4
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|[[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> |>= 2
|[[requirement_null]] <<requirement_null,null>> |>= 3
|[[requirement_random]] <<requirement_random,random>> |>= 3
Expand Down Expand Up @@ -292,7 +292,7 @@ object({
|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v4.0.0"`
|`"v4.0.1"`
|no

|[[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>
Expand Down
8 changes: 4 additions & 4 deletions eks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

The following requirements are needed by this module:

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

- [[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> (>= 2)

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

Type: `string`

Default: `"v4.0.0"`
Default: `"v4.0.1"`

==== [[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>

Expand Down Expand Up @@ -199,7 +199,7 @@ Description: The admin password for Grafana.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 4
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|[[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> |>= 2
|[[requirement_null]] <<requirement_null,null>> |>= 3
|[[requirement_random]] <<requirement_random,random>> |>= 3
Expand Down Expand Up @@ -256,7 +256,7 @@ object({
|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v4.0.0"`
|`"v4.0.1"`
|no

|[[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>
Expand Down
8 changes: 4 additions & 4 deletions kind/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

The following requirements are needed by this module:

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

- [[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> (>= 2)

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

Type: `string`

Default: `"v4.0.0"`
Default: `"v4.0.1"`

==== [[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>

Expand Down Expand Up @@ -201,7 +201,7 @@ Description: The admin password for Grafana.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 4
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|[[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> |>= 2
|[[requirement_null]] <<requirement_null,null>> |>= 3
|[[requirement_random]] <<requirement_random,random>> |>= 3
Expand Down Expand Up @@ -260,7 +260,7 @@ object({
|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v4.0.0"`
|`"v4.0.1"`
|no

|[[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>
Expand Down
16 changes: 11 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "argocd_project" "this" {
namespace = var.namespace
}

# This extra destination block is needed by the v1/Service
# This extra destination block is needed by the v1/Service
# kube-prometheus-stack-coredns and kube-prometheus-stack-kubelet
# that have to be inside kube-system.
destination {
Expand Down Expand Up @@ -119,17 +119,23 @@ 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 = {
backoff {
duration = "20s"
max_duration = "5m"
max_duration = "2m"
factor = "2"
}
limit = "3"
limit = "5"
}

sync_options = [
# Set to false because namespace is created by resource.kubernetes_namespace.kube_prometheus_stack_namespace
"CreateNamespace=false"
]
}
Expand Down
8 changes: 4 additions & 4 deletions sks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ In order to be able to check the logs collected by Loki in the Grafana interface

The following requirements are needed by this module:

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

- [[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> (>= 2)

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

Type: `string`

Default: `"v4.0.0"`
Default: `"v4.0.1"`

==== [[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>

Expand Down Expand Up @@ -348,7 +348,7 @@ Description: The admin password for Grafana.
[cols="a,a",options="header,autowidth"]
|===
|Name |Version
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 4
|[[requirement_argocd]] <<requirement_argocd,argocd>> |>= 5
|[[requirement_kubernetes]] <<requirement_kubernetes,kubernetes>> |>= 2
|[[requirement_null]] <<requirement_null,null>> |>= 3
|[[requirement_random]] <<requirement_random,random>> |>= 3
Expand Down Expand Up @@ -406,7 +406,7 @@ object({
|[[input_target_revision]] <<input_target_revision,target_revision>>
|Override of target revision of the application chart.
|`string`
|`"v4.0.0"`
|`"v4.0.1"`
|no
|[[input_cluster_issuer]] <<input_cluster_issuer,cluster_issuer>>
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 1c0660f

Please sign in to comment.