Skip to content

Commit e6d7f67

Browse files
committed
fix: fix new var names flowing through to submodule
Signed-off-by: Carus Kyle <[email protected]>
1 parent 6dc44af commit e6d7f67

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ module "node_pools" {
203203
machine_type = each.value.machine_type
204204
fips_enabled = var.fips_enabled
205205
os_disk_size = each.value.os_disk_size
206-
os_disk_type = each.value.os_disk_type
207-
kubelet_disk_type = each.value.kubelet_disk_type
208206
auto_scaling_enabled = each.value.min_nodes == each.value.max_nodes ? false : true
209207
node_count = each.value.min_nodes
210208
min_nodes = each.value.min_nodes == each.value.max_nodes ? null : each.value.min_nodes
@@ -221,6 +219,8 @@ module "node_pools" {
221219
community_priority = each.value.community_priority
222220
community_eviction_policy = each.value.community_eviction_policy
223221
community_spot_max_price = each.value.community_spot_max_price
222+
community_os_disk_type = each.value.community_os_disk_type
223+
community_kubelet_disk_type = each.value.community_kubelet_disk_type
224224

225225
}
226226

modules/aks_node_pool/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "static_node_pool" {
5353
proximity_placement_group_id = var.proximity_placement_group_id == "" ? null : var.proximity_placement_group_id
5454
vm_size = var.machine_type
5555
os_disk_size_gb = var.os_disk_size
56-
os_disk_type = var.os_disk_type
57-
kubelet_disk_type = var.kubelet_disk_type
5856
os_type = var.os_type
5957
auto_scaling_enabled = var.auto_scaling_enabled
6058
node_count = var.node_count
@@ -68,6 +66,9 @@ resource "azurerm_kubernetes_cluster_node_pool" "static_node_pool" {
6866
priority = var.community_priority
6967
eviction_policy = var.community_eviction_policy
7068
spot_max_price = var.community_spot_max_price
69+
os_disk_type = var.community_os_disk_type
70+
kubelet_disk_type = var.community_kubelet_disk_type
71+
7172
linux_os_config {
7273
sysctl_config {
7374
vm_max_map_count = try(var.linux_os_config.sysctl_config.vm_max_map_count,null)

0 commit comments

Comments
 (0)