Skip to content

Commit

Permalink
feat: use podSelctor to allow traefik
Browse files Browse the repository at this point in the history
docs(terraform-docs): generate docs and write to README.adoc
  • Loading branch information
omohammed95 committed Aug 21, 2024
1 parent a98ad02 commit 5ffc39f
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 57 deletions.
16 changes: 15 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ Type: `bool`

Default: `false`

==== [[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>

Description: Enable or disable network policy for Thanos components.

Type: `bool`

Default: `false`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -302,8 +310,8 @@ Description: ID to pass other modules in order to refer to this module as a depe
|===
|Name |Version
|[[provider_random]] <<provider_random,random>> |>= 3
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 5
|[[provider_utils]] <<provider_utils,utils>> |>= 1
|[[provider_argocd]] <<provider_argocd,argocd>> |>= 5
|[[provider_null]] <<provider_null,null>> |>= 3
|===
Expand Down Expand Up @@ -513,6 +521,12 @@ object({
|`false`
|no
|[[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>
|Enable or disable network policy for Thanos components.
|`bool`
|`false`
|no
|===
= Outputs
Expand Down
14 changes: 14 additions & 0 deletions aks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,14 @@ Type: `bool`

Default: `false`

==== [[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>

Description: Enable or disable network policy for Thanos components.

Type: `bool`

Default: `false`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -740,6 +748,12 @@ object({
|`false`
|no
|[[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>
|Enable or disable network policy for Thanos components.
|`bool`
|`false`
|no
|===
= Outputs
Expand Down
26 changes: 13 additions & 13 deletions aks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ resource "azurerm_federated_identity_credential" "thanos" {
module "thanos" {
source = "../"

cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies
cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies

resources = var.resources

Expand Down
14 changes: 14 additions & 0 deletions eks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,14 @@ Type: `bool`

Default: `false`

==== [[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>

Description: Enable or disable network policy for Thanos components.

Type: `bool`

Default: `false`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -768,6 +776,12 @@ object({
|`false`
|no
|[[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>
|Enable or disable network policy for Thanos components.
|`bool`
|`false`
|no
|===
= Outputs
Expand Down
26 changes: 13 additions & 13 deletions eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ module "iam_assumable_role_thanos" {
module "thanos" {
source = "../"

cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies
cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies

resources = var.resources

Expand Down
14 changes: 14 additions & 0 deletions kind/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,14 @@ Type: `bool`

Default: `false`

==== [[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>

Description: Enable or disable network policy for Thanos components.

Type: `bool`

Default: `false`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -645,6 +653,12 @@ object({
|`false`
|no
|[[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>
|Enable or disable network policy for Thanos components.
|`bool`
|`false`
|no
|===
= Outputs
Expand Down
26 changes: 13 additions & 13 deletions kind/main.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module "thanos" {
source = "../"

cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies
cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies

resources = var.resources

Expand Down
8 changes: 4 additions & 4 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ locals {
extraIngress = var.enable_network_policies ? [
{
from = {
namespaceSelector = {
podSelector = {
matchLabels = {
"app.kubernetes.io/metadata.name" = "traefik"
"app" = "traefik"
}
}
}
Expand Down Expand Up @@ -349,9 +349,9 @@ locals {
extraIngress = var.enable_network_policies ? [
{
from = {
namespaceSelector = {
podSelector = {
matchLabels = {
"app.kubernetes.io/metadata.name" = "traefik"
"app" = "traefik"
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions sks/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,14 @@ Type: `bool`

Default: `false`

==== [[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>

Description: Enable or disable network policy for Thanos components.

Type: `bool`

Default: `false`

=== Outputs

The following outputs are exported:
Expand Down Expand Up @@ -587,6 +595,12 @@ object({
|`false`
|no
|[[input_network_policy_thanos]] <<input_network_policy_thanos,network_policy_thanos>>
|Enable or disable network policy for Thanos components.
|`bool`
|`false`
|no
|===
= Outputs
Expand Down
26 changes: 13 additions & 13 deletions sks/main.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module "thanos" {
source = "../"

cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies
cluster_name = var.cluster_name
base_domain = var.base_domain
subdomain = var.subdomain
argocd_project = var.argocd_project
argocd_labels = var.argocd_labels
destination_cluster = var.destination_cluster
target_revision = var.target_revision
cluster_issuer = var.cluster_issuer
deep_merge_append_list = var.deep_merge_append_list
enable_service_monitor = var.enable_service_monitor
app_autosync = var.app_autosync
dependency_ids = var.dependency_ids
enable_network_policies = var.enable_network_policies

resources = var.resources

Expand Down

0 comments on commit 5ffc39f

Please sign in to comment.