Skip to content

Commit 0f84acd

Browse files
authored
Merge pull request #468 from lonegunmanb/e-467
Add support for `service_mesh_profile` block
2 parents fd5fe70 + 807d554 commit 0f84acd

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ No modules.
378378
| <a name="input_scale_down_mode"></a> [scale\_down\_mode](#input\_scale\_down\_mode) | (Optional) Specifies the autoscaling behaviour of the Kubernetes Cluster. If not specified, it defaults to `Delete`. Possible values include `Delete` and `Deallocate`. Changing this forces a new resource to be created. | `string` | `"Delete"` | no |
379379
| <a name="input_secret_rotation_enabled"></a> [secret\_rotation\_enabled](#input\_secret\_rotation\_enabled) | Is secret rotation enabled? This variable is only used when `key_vault_secrets_provider_enabled` is `true` and defaults to `false` | `bool` | `false` | no |
380380
| <a name="input_secret_rotation_interval"></a> [secret\_rotation\_interval](#input\_secret\_rotation\_interval) | The interval to poll for secret rotation. This attribute is only set when `secret_rotation` is `true` and defaults to `2m` | `string` | `"2m"` | no |
381+
| <a name="input_service_mesh_profile"></a> [service\_mesh\_profile](#input\_service\_mesh\_profile) | `mode` - (Required) The mode of the service mesh. Possible value is `Istio`.<br>`internal_ingress_gateway_enabled` - (Optional) Is Istio Internal Ingress Gateway enabled? Defaults to `true`.<br>`external_ingress_gateway_enabled` - (Optional) Is Istio External Ingress Gateway enabled? Defaults to `true`. | <pre>object({<br> mode = string<br> internal_ingress_gateway_enabled = optional(bool, true)<br> external_ingress_gateway_enabled = optional(bool, true)<br> })</pre> | `null` | no |
381382
| <a name="input_sku_tier"></a> [sku\_tier](#input\_sku\_tier) | The SKU Tier that should be used for this Kubernetes Cluster. Possible values are `Free` and `Standard` | `string` | `"Free"` | no |
382383
| <a name="input_snapshot_id"></a> [snapshot\_id](#input\_snapshot\_id) | (Optional) The ID of the Snapshot which should be used to create this default Node Pool. `temporary_name_for_rotation` must be specified when changing this property. | `string` | `null` | no |
383384
| <a name="input_storage_profile_blob_driver_enabled"></a> [storage\_profile\_blob\_driver\_enabled](#input\_storage\_profile\_blob\_driver\_enabled) | (Optional) Is the Blob CSI driver enabled? Defaults to `false` | `bool` | `false` | no |

main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,14 @@ resource "azurerm_kubernetes_cluster" "main" {
454454
msi_auth_for_monitoring_enabled = var.msi_auth_for_monitoring_enabled
455455
}
456456
}
457+
dynamic "service_mesh_profile" {
458+
for_each = var.service_mesh_profile == null ? [] : ["service_mesh_profile"]
459+
content {
460+
mode = var.service_mesh_profile.mode
461+
external_ingress_gateway_enabled = var.service_mesh_profile.external_ingress_gateway_enabled
462+
internal_ingress_gateway_enabled = var.service_mesh_profile.internal_ingress_gateway_enabled
463+
}
464+
}
457465
dynamic "service_principal" {
458466
for_each = var.client_id != "" && var.client_secret != "" ? ["service_principal"] : []
459467

variables.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,20 @@ variable "secret_rotation_interval" {
11591159
nullable = false
11601160
}
11611161

1162+
variable "service_mesh_profile" {
1163+
type = object({
1164+
mode = string
1165+
internal_ingress_gateway_enabled = optional(bool, true)
1166+
external_ingress_gateway_enabled = optional(bool, true)
1167+
})
1168+
default = null
1169+
description = <<-EOT
1170+
`mode` - (Required) The mode of the service mesh. Possible value is `Istio`.
1171+
`internal_ingress_gateway_enabled` - (Optional) Is Istio Internal Ingress Gateway enabled? Defaults to `true`.
1172+
`external_ingress_gateway_enabled` - (Optional) Is Istio External Ingress Gateway enabled? Defaults to `true`.
1173+
EOT
1174+
}
1175+
11621176
variable "sku_tier" {
11631177
type = string
11641178
default = "Free"

0 commit comments

Comments
 (0)