Skip to content

Commit

Permalink
Merge pull request #1064 from Silvest89/fix-undefined-key
Browse files Browse the repository at this point in the history
fix: undefined ingress key
  • Loading branch information
mysticaltech authored Oct 25, 2023
2 parents d15a9c4 + 2d1a65b commit df143d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

| Name | Version |
|------|---------|
| <a name="provider_cloudinit"></a> [cloudinit](#provider\_cloudinit) | n/a |
| <a name="provider_github"></a> [github](#provider\_github) | >= 5.38.0 |
| <a name="provider_hcloud"></a> [hcloud](#provider\_hcloud) | >= 1.43.0 |
| <a name="provider_local"></a> [local](#provider\_local) | >= 2.4.0 |
| <a name="provider_null"></a> [null](#provider\_null) | n/a |
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
| <a name="provider_remote"></a> [remote](#provider\_remote) | >= 0.1.2 |
| <a name="provider_cloudinit"></a> [cloudinit](#provider\_cloudinit) | 2.3.2 |
| <a name="provider_github"></a> [github](#provider\_github) | 5.38.0 |
| <a name="provider_hcloud"></a> [hcloud](#provider\_hcloud) | 1.43.0 |
| <a name="provider_local"></a> [local](#provider\_local) | 2.4.0 |
| <a name="provider_null"></a> [null](#provider\_null) | 3.2.1 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 |
| <a name="provider_remote"></a> [remote](#provider\_remote) | 0.1.2 |

### Modules

Expand Down
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ locals {
"traefik" = "traefik"
"nginx" = "nginx"
}
ingress_target_namespace = var.ingress_target_namespace != "" ? var.ingress_target_namespace : local.default_ingress_namespace_mapping[var.ingress_controller]
ingress_target_namespace = var.ingress_target_namespace != "" ? var.ingress_target_namespace : lookup(local.default_ingress_namespace_mapping, var.ingress_controller, "")
ingress_replica_count = (var.ingress_replica_count > 0) ? var.ingress_replica_count : (local.agent_count > 2) ? 3 : (local.agent_count == 2) ? 2 : 1
ingress_max_replica_count = (var.ingress_max_replica_count > local.ingress_replica_count) ? var.ingress_max_replica_count : local.ingress_replica_count

Expand Down

0 comments on commit df143d0

Please sign in to comment.