Skip to content

Commit

Permalink
feat: (PSKD-348) Additional module updates
Browse files Browse the repository at this point in the history
  • Loading branch information
riragh committed Oct 4, 2024
1 parent b10038d commit 66fce89
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ module "aks" {
aks_cluster_max_pods = var.default_nodepool_max_pods
aks_cluster_os_disk_size = var.default_nodepool_os_disk_size
aks_cluster_node_vm_size = var.default_nodepool_vm_type
aks_cluster_host_encryption_enabled = var.aks_cluster_host_encryption_enabled
aks_cluster_enable_host_encryption = var.aks_cluster_enable_host_encryption
aks_node_disk_encryption_set_id = var.aks_node_disk_encryption_set_id
aks_cluster_node_admin = var.node_vm_admin
aks_cluster_ssh_public_key = try(file(var.ssh_public_key), "")
Expand Down Expand Up @@ -209,7 +209,7 @@ module "node_pools" {
zones = (var.node_pools_availability_zone == "" || var.node_pools_proximity_placement == true) ? [] : (var.node_pools_availability_zones != null) ? var.node_pools_availability_zones : [var.node_pools_availability_zone]
proximity_placement_group_id = element(coalescelist(azurerm_proximity_placement_group.proximity[*].id, [""]), 0)
orchestrator_version = var.kubernetes_version
host_encryption_enabled = var.aks_cluster_host_encryption_enabled
host_encryption_enabled = var.aks_cluster_enable_host_encryption
tags = var.tags
}

Expand Down
2 changes: 1 addition & 1 deletion modules/azure_aks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "azurerm_kubernetes_cluster" "aks" {
node_public_ip_enabled = false
node_labels = {}
fips_enabled = var.fips_enabled
host_encryption_enabled = var.aks_cluster_host_encryption_enabled
host_encryption_enabled = var.aks_cluster_enable_host_encryption
max_pods = var.aks_cluster_max_pods
os_disk_size_gb = var.aks_cluster_os_disk_size
max_count = var.aks_cluster_max_nodes
Expand Down
2 changes: 1 addition & 1 deletion modules/azure_aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ variable "aks_cluster_max_pods" {
default = 110
}

variable "aks_cluster_host_encryption_enabled" {
variable "aks_cluster_enable_host_encryption" {
description = "Enables host encryption on all the nodes in the Default Node Pool"
type = bool
default = false
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ output "rwx_filestore_config" {
"virtualNetwork" : module.vnet.name,
"subnet" : module.vnet.subnets["netapp"],
"defaults" : {
"exportRule" : element(module.vnet.address_space, 0),
"exportRule" : element(tolist(module.vnet.address_space), 0),
}
}) : null
}
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ variable "default_nodepool_availability_zones" {
default = ["1"]
}

variable "aks_cluster_host_encryption_enabled" {
variable "aks_cluster_enable_host_encryption" {
description = "Enables host encryption on all the nodes in the Node Pool."
type = bool
default = false
Expand Down

0 comments on commit 66fce89

Please sign in to comment.