diff --git a/README.adoc b/README.adoc index f768cc13..b8c9ac42 100644 --- a/README.adoc +++ b/README.adoc @@ -38,14 +38,14 @@ The following requirements are needed by this module: The following providers are used by this module: -- [[provider_kubernetes]] <> (>= 2) - - [[provider_random]] <> (>= 3) -- [[provider_utils]] <> (>= 1) - - [[provider_argocd]] <> (>= 5) +- [[provider_kubernetes]] <> (>= 2) + +- [[provider_utils]] <> (>= 1) + - [[provider_null]] <> (>= 3) === Resources @@ -120,7 +120,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v11.1.1"` +Default: `"v12.0.0"` ==== [[input_cluster_issuer]] <> @@ -322,6 +322,14 @@ Type: `number` Default: `30` +==== [[input_alertmanager_storage_size]] <> + +Description: Default PVC size for Alertmanager data. + +Type: `string` + +Default: `"10Gi"` + === Outputs The following outputs are exported: @@ -358,9 +366,9 @@ Description: The admin password for Grafana. [cols="a,a",options="header,autowidth"] |=== |Name |Version -|[[provider_random]] <> |>= 3 |[[provider_argocd]] <> |>= 5 |[[provider_kubernetes]] <> |>= 2 +|[[provider_random]] <> |>= 3 |[[provider_utils]] <> |>= 1 |[[provider_null]] <> |>= 3 |=== @@ -425,7 +433,7 @@ Description: The admin password for Grafana. |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v11.1.1"` +|`"v12.0.0"` |no |[[input_cluster_issuer]] <> @@ -614,6 +622,12 @@ object({ |`30` |no +|[[input_alertmanager_storage_size]] <> +|Default PVC size for Alertmanager data. +|`string` +|`"10Gi"` +|no + |=== = Outputs diff --git a/aks/README.adoc b/aks/README.adoc index 8c62d252..a3efd9e4 100644 --- a/aks/README.adoc +++ b/aks/README.adoc @@ -118,7 +118,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v11.1.1"` +Default: `"v12.0.0"` ==== [[input_cluster_issuer]] <> @@ -320,6 +320,14 @@ Type: `number` Default: `30` +==== [[input_alertmanager_storage_size]] <> + +Description: Default PVC size for Alertmanager data. + +Type: `string` + +Default: `"10Gi"` + === Outputs The following outputs are exported: @@ -437,7 +445,7 @@ object({ |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v11.1.1"` +|`"v12.0.0"` |no |[[input_cluster_issuer]] <> @@ -626,6 +634,12 @@ object({ |`30` |no +|[[input_alertmanager_storage_size]] <> +|Default PVC size for Alertmanager data. +|`string` +|`"10Gi"` +|no + |=== = Outputs diff --git a/eks/README.adoc b/eks/README.adoc index 3c7d27f5..4bab458c 100644 --- a/eks/README.adoc +++ b/eks/README.adoc @@ -118,7 +118,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v11.1.1"` +Default: `"v12.0.0"` ==== [[input_cluster_issuer]] <> @@ -320,6 +320,14 @@ Type: `number` Default: `30` +==== [[input_alertmanager_storage_size]] <> + +Description: Default PVC size for Alertmanager data. + +Type: `string` + +Default: `"10Gi"` + === Outputs The following outputs are exported: @@ -433,7 +441,7 @@ object({ |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v11.1.1"` +|`"v12.0.0"` |no |[[input_cluster_issuer]] <> @@ -622,6 +630,12 @@ object({ |`30` |no +|[[input_alertmanager_storage_size]] <> +|Default PVC size for Alertmanager data. +|`string` +|`"10Gi"` +|no + |=== = Outputs diff --git a/kind/README.adoc b/kind/README.adoc index 61761a7f..76042a45 100644 --- a/kind/README.adoc +++ b/kind/README.adoc @@ -99,7 +99,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v11.1.1"` +Default: `"v12.0.0"` ==== [[input_cluster_issuer]] <> @@ -301,6 +301,14 @@ Type: `number` Default: `30` +==== [[input_alertmanager_storage_size]] <> + +Description: Default PVC size for Alertmanager data. + +Type: `string` + +Default: `"10Gi"` + === Outputs The following outputs are exported: @@ -396,7 +404,7 @@ object({ |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v11.1.1"` +|`"v12.0.0"` |no |[[input_cluster_issuer]] <> @@ -585,6 +593,12 @@ object({ |`30` |no +|[[input_alertmanager_storage_size]] <> +|Default PVC size for Alertmanager data. +|`string` +|`"10Gi"` +|no + |=== = Outputs diff --git a/locals.tf b/locals.tf index b220d1ce..fb7a2a5c 100644 --- a/locals.tf +++ b/locals.tf @@ -169,6 +169,18 @@ locals { requests = { for k, v in var.resources.alertmanager.requests : k => v if v != null } limits = { for k, v in var.resources.alertmanager.limits : k => v if v != null } } + storage = { + volumeClaimTemplate = { + spec = { + accessModes = ["ReadWriteOnce"] + resources = { + requests = { + storage = var.alertmanager_storage_size + } + } + } + } + } } ingress = { enabled = true diff --git a/sks/README.adoc b/sks/README.adoc index b52f1c02..957a7248 100644 --- a/sks/README.adoc +++ b/sks/README.adoc @@ -240,7 +240,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v11.1.1"` +Default: `"v12.0.0"` ==== [[input_cluster_issuer]] <> @@ -442,6 +442,14 @@ Type: `number` Default: `30` +==== [[input_alertmanager_storage_size]] <> + +Description: Default PVC size for Alertmanager data. + +Type: `string` + +Default: `"10Gi"` + === Outputs The following outputs are exported: @@ -542,7 +550,7 @@ object({ |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v11.1.1"` +|`"v12.0.0"` |no |[[input_cluster_issuer]] <> @@ -731,6 +739,12 @@ object({ |`30` |no +|[[input_alertmanager_storage_size]] <> +|Default PVC size for Alertmanager data. +|`string` +|`"10Gi"` +|no + |=== = Outputs diff --git a/variables.tf b/variables.tf index e3f0f621..b0524ae3 100644 --- a/variables.tf +++ b/variables.tf @@ -215,3 +215,9 @@ variable "dataproxy_timeout" { type = number default = 30 } + +variable "alertmanager_storage_size" { + description = "Default PVC size for Alertmanager data." + type = string + default = "10Gi" +}