Skip to content

Commit 79dbcdd

Browse files
committed
fix typo in variable
1 parent cc5a549 commit 79dbcdd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

module-oke-defaults.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ locals {
4242
# node_pool_max_nodes = 2
4343
# node_k8s_version = var.k8s_version
4444
# node_pool_shape = "BM.GPU.A10.4"
45-
# node_pool_shape_specifc_ad = 3 # Optional, if not provided or set = 0, will be randomly assigned
45+
# node_pool_shape_specific_ad = 3 # Optional, if not provided or set = 0, will be randomly assigned
4646
# node_pool_node_shape_config_ocpus = 1
4747
# node_pool_node_shape_config_memory_in_gbs = 1
4848
# node_pool_boot_volume_size_in_gbs = "100"

module-oke.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module "oke_node_pool" {
115115
node_pool_max_nodes = each.value.node_pool_max_nodes
116116
node_k8s_version = each.value.node_k8s_version
117117
node_pool_shape = each.value.node_pool_shape
118-
node_pool_shape_specifc_ad = each.value.node_pool_shape_specifc_ad
118+
node_pool_shape_specific_ad = each.value.node_pool_shape_specific_ad
119119
node_pool_node_shape_config_ocpus = each.value.node_pool_node_shape_config_ocpus
120120
node_pool_node_shape_config_memory_in_gbs = each.value.node_pool_node_shape_config_memory_in_gbs
121121
existent_oke_nodepool_id_for_autoscaler = each.value.existent_oke_nodepool_id_for_autoscaler

modules/oke-node-pool/datasources.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ data "oci_identity_availability_domains" "ADs" {
2424
# Gets a specfic Availability Domain
2525
data "oci_identity_availability_domain" "specfic" {
2626
compartment_id = var.tenancy_ocid
27-
ad_number = var.node_pool_shape_specifc_ad
27+
ad_number = var.node_pool_shape_specific_ad
2828

29-
count = (var.node_pool_shape_specifc_ad > 0) ? 1 : 0
29+
count = (var.node_pool_shape_specific_ad > 0) ? 1 : 0
3030
}

modules/oke-node-pool/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ locals {
8181
node_k8s_version = (var.node_k8s_version == "Latest") ? local.node_pool_k8s_latest_version : var.node_k8s_version
8282

8383
# Get ADs for the shape to be used on the node pool
84-
node_pool_ads = (var.node_pool_shape_specifc_ad > 0) ? data.oci_identity_availability_domain.specfic : data.oci_identity_availability_domains.ADs.availability_domains
84+
node_pool_ads = (var.node_pool_shape_specific_ad > 0) ? data.oci_identity_availability_domain.specfic : data.oci_identity_availability_domains.ADs.availability_domains
8585
}

modules/oke-node-pool/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ variable "node_pool_node_shape_config_memory_in_gbs" {
5050
default = "16" # Only used if flex shape is selected
5151
description = "You can customize the amount of memory allocated to a flexible shape"
5252
}
53-
variable "node_pool_shape_specifc_ad" {
53+
variable "node_pool_shape_specific_ad" {
5454
description = "The number of the AD to get the shape for the node pool"
5555
type = number
5656
default = 0
5757

5858
validation {
59-
condition = var.node_pool_shape_specifc_ad >= 0 && var.node_pool_shape_specifc_ad <= 3
59+
condition = var.node_pool_shape_specific_ad >= 0 && var.node_pool_shape_specific_ad <= 3
6060
error_message = "Invalid AD number, should be 0 to get all ADs or 1, 2 or 3 to be a specific AD."
6161
}
6262
}

0 commit comments

Comments
 (0)