Skip to content

Commit f24e96a

Browse files
authored
fix: handle pod nsg id/ids issue (#570)
fix: handle pod nsg id/ids issue. Closes $569 Signed-off-by: Ali Mukadam <[email protected]> Signed-off-by: Ali Mukadam <[email protected]>
1 parent 42d8c47 commit f24e96a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/oke/nodepools.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ resource "oci_containerengine_node_pool" "nodepools" {
4444
content {
4545
cni_type = "OCI_VCN_IP_NATIVE"
4646
max_pods_per_node = var.max_pods_per_node
47-
pod_nsg_ids = var.pod_nsgs
47+
# pick the 1st pod nsg here until https://github.com/oracle/terraform-provider-oci/issues/1662 is clarified and resolved
48+
pod_nsg_ids = element(var.pod_nsgs,0)
4849
pod_subnet_ids = tolist([var.cluster_subnets["pods"]])
4950
}
5051
}

0 commit comments

Comments
 (0)