diff --git a/README.adoc b/README.adoc index df8887d..c9cbe58 100644 --- a/README.adoc +++ b/README.adoc @@ -38,10 +38,10 @@ The following providers are used by this module: - [[provider_random]] <> (>= 3) -- [[provider_argocd]] <> (>= 5) - - [[provider_utils]] <> (>= 1) +- [[provider_argocd]] <> (>= 5) + - [[provider_null]] <> (>= 3) === Resources @@ -270,7 +270,7 @@ Type: `bool` Default: `false` -==== [[input_network_policy_thanos]] <> +==== [[input_enable_network_policies]] <> Description: Enable or disable network policy for Thanos components. @@ -309,10 +309,10 @@ Description: ID to pass other modules in order to refer to this module as a depe [cols="a,a",options="header,autowidth"] |=== |Name |Version +|[[provider_null]] <> |>= 3 |[[provider_random]] <> |>= 3 -|[[provider_utils]] <> |>= 1 |[[provider_argocd]] <> |>= 5 -|[[provider_null]] <> |>= 3 +|[[provider_utils]] <> |>= 1 |=== = Resources @@ -521,7 +521,7 @@ object({ |`false` |no -|[[input_network_policy_thanos]] <> +|[[input_enable_network_policies]] <> |Enable or disable network policy for Thanos components. |`bool` |`false` diff --git a/aks/README.adoc b/aks/README.adoc index 75cea20..cc18aa0 100644 --- a/aks/README.adoc +++ b/aks/README.adoc @@ -474,7 +474,7 @@ Type: `bool` Default: `false` -==== [[input_network_policy_thanos]] <> +==== [[input_enable_network_policies]] <> Description: Enable or disable network policy for Thanos components. @@ -748,7 +748,7 @@ object({ |`false` |no -|[[input_network_policy_thanos]] <> +|[[input_enable_network_policies]] <> |Enable or disable network policy for Thanos components. |`bool` |`false` diff --git a/eks/README.adoc b/eks/README.adoc index e69ee47..99bf000 100644 --- a/eks/README.adoc +++ b/eks/README.adoc @@ -503,7 +503,7 @@ Type: `bool` Default: `false` -==== [[input_network_policy_thanos]] <> +==== [[input_enable_network_policies]] <> Description: Enable or disable network policy for Thanos components. @@ -776,7 +776,7 @@ object({ |`false` |no -|[[input_network_policy_thanos]] <> +|[[input_enable_network_policies]] <> |Enable or disable network policy for Thanos components. |`bool` |`false` diff --git a/kind/README.adoc b/kind/README.adoc index 502434f..90d815b 100644 --- a/kind/README.adoc +++ b/kind/README.adoc @@ -401,7 +401,7 @@ Type: `bool` Default: `false` -==== [[input_network_policy_thanos]] <> +==== [[input_enable_network_policies]] <> Description: Enable or disable network policy for Thanos components. @@ -653,7 +653,7 @@ object({ |`false` |no -|[[input_network_policy_thanos]] <> +|[[input_enable_network_policies]] <> |Enable or disable network policy for Thanos components. |`bool` |`false` diff --git a/locals.tf b/locals.tf index df4e565..0c2b1cc 100644 --- a/locals.tf +++ b/locals.tf @@ -203,13 +203,13 @@ locals { enabled = var.enable_network_policies extraIngress = var.enable_network_policies ? [ { - from = { + from = [{ podSelector = { matchLabels = { "app" = "traefik" } } - } + }] } ] : [] } diff --git a/sks/README.adoc b/sks/README.adoc index fd0b0ff..c65df02 100644 --- a/sks/README.adoc +++ b/sks/README.adoc @@ -344,7 +344,7 @@ Type: `bool` Default: `false` -==== [[input_network_policy_thanos]] <> +==== [[input_enable_network_policies]] <> Description: Enable or disable network policy for Thanos components. @@ -595,7 +595,7 @@ object({ |`false` |no -|[[input_network_policy_thanos]] <> +|[[input_enable_network_policies]] <> |Enable or disable network policy for Thanos components. |`bool` |`false`