diff --git a/README.adoc b/README.adoc index 9081fa4..7e89ef0 100644 --- a/README.adoc +++ b/README.adoc @@ -99,8 +99,6 @@ The following requirements are needed by this module: The following providers are used by this module: -- [[provider_null]] <> (>= 3) - - [[provider_random]] <> (>= 3) - [[provider_utils]] <> (>= 1) @@ -109,6 +107,8 @@ The following providers are used by this module: - [[provider_kubernetes]] <> (>= 2) +- [[provider_null]] <> (>= 3) + === Resources The following resources are used by this module: @@ -157,7 +157,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v1.1.1"` +Default: `"v2.0.0"` ==== [[input_cluster_issuer]] <> @@ -268,11 +268,11 @@ Description: Credentials for the administrator user of the master realm created [cols="a,a",options="header,autowidth"] |=== |Name |Version -|[[provider_null]] <> |>= 3 |[[provider_random]] <> |>= 3 |[[provider_utils]] <> |>= 1 |[[provider_argocd]] <> |>= 5 |[[provider_kubernetes]] <> |>= 2 +|[[provider_null]] <> |>= 3 |=== = Resources @@ -317,7 +317,7 @@ Description: Credentials for the administrator user of the master realm created |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v1.1.1"` +|`"v2.0.0"` |no |[[input_cluster_issuer]] <> diff --git a/main.tf b/main.tf index c8ea620..621c7d9 100644 --- a/main.tf +++ b/main.tf @@ -63,10 +63,13 @@ resource "argocd_application" "operator" { } sync_policy { - automated { - prune = var.app_autosync.prune - self_heal = var.app_autosync.self_heal - allow_empty = var.app_autosync.allow_empty + dynamic "automated" { + for_each = toset(var.app_autosync == { "allow_empty" = tobool(null), "prune" = tobool(null), "self_heal" = tobool(null) } ? [] : [var.app_autosync]) + content { + prune = automated.value.prune + self_heal = automated.value.self_heal + allow_empty = automated.value.allow_empty + } } retry { @@ -120,10 +123,13 @@ resource "argocd_application" "this" { } sync_policy { - automated { - prune = var.app_autosync.prune - self_heal = var.app_autosync.self_heal - allow_empty = var.app_autosync.allow_empty + dynamic "automated" { + for_each = toset(var.app_autosync == { "allow_empty" = tobool(null), "prune" = tobool(null), "self_heal" = tobool(null) } ? [] : [var.app_autosync]) + content { + prune = automated.value.prune + self_heal = automated.value.self_heal + allow_empty = automated.value.allow_empty + } } retry { backoff { diff --git a/oidc_bootstrap/README.adoc b/oidc_bootstrap/README.adoc index 0577c9f..ccc9b5e 100644 --- a/oidc_bootstrap/README.adoc +++ b/oidc_bootstrap/README.adoc @@ -161,12 +161,12 @@ The following requirements are needed by this module: The following providers are used by this module: +- [[provider_null]] <> (>= 3) + - [[provider_keycloak]] <> (>= 4) - [[provider_random]] <> (>= 3) -- [[provider_null]] <> (>= 3) - === Resources The following resources are used by this module: @@ -302,8 +302,8 @@ Description: Map containing the credentials of each created user. [cols="a,a",options="header,autowidth"] |=== |Name |Version -|[[provider_keycloak]] <> |>= 4 |[[provider_random]] <> |>= 3 +|[[provider_keycloak]] <> |>= 4 |[[provider_null]] <> |>= 3 |===