Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_kubernetes_cluster- fix test configs for renamed properties #27286

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func TestAccKubernetesCluster_enableNodePublicIP(t *testing.T) {
Config: r.enableNodePublicIPConfig(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("default_node_pool.0.enable_node_public_ip").HasValue("true"),
check.That(data.ResourceName).Key("default_node_pool.0.node_public_ip_enabled").HasValue("true"),
),
},
data.ImportStep(),
Expand Down Expand Up @@ -412,7 +412,7 @@ func TestAccKubernetesCluster_nodePublicIPPrefix(t *testing.T) {
Config: r.nodePublicIPPrefixConfig(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("default_node_pool.0.enable_node_public_ip").HasValue("true"),
check.That(data.ResourceName).Key("default_node_pool.0.node_public_ip_enabled").HasValue("true"),
check.That(data.ResourceName).Key("default_node_pool.0.node_public_ip_prefix_id").Exists(),
),
},
Expand Down Expand Up @@ -1966,10 +1966,10 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestaks%d"

default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_node_public_ip = true
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
node_public_ip_enabled = true
upgrade_settings {
max_surge = "10%%"
}
Expand Down Expand Up @@ -2067,7 +2067,7 @@ resource "azurerm_kubernetes_cluster" "test" {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_node_public_ip = true
node_public_ip_enabled = true
node_public_ip_prefix_id = azurerm_public_ip_prefix.test.id
upgrade_settings {
max_surge = "10%%"
Expand Down Expand Up @@ -4384,10 +4384,10 @@ resource "azurerm_kubernetes_cluster" "test" {
resource_group_name = azurerm_resource_group.test.name
dns_prefix = "acctestaks%[2]d"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_node_public_ip = true
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
node_public_ip_enabled = true
node_network_profile {
node_public_ip_tags = {
RoutingPreference = "Internet"
Expand Down Expand Up @@ -4427,10 +4427,10 @@ resource "azurerm_kubernetes_cluster" "test" {
resource_group_name = azurerm_resource_group.test.name
dns_prefix = "acctestaks%[2]d"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_node_public_ip = true
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
node_public_ip_enabled = true
node_network_profile {
allowed_host_ports {
port_start = 8001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1349,12 +1349,12 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestaks%d"

default_node_pool {
name = "default"
node_count = 1
enable_auto_scaling = true
vm_size = "Standard_DS2_v2"
min_count = 1
max_count = 1
name = "default"
node_count = 1
auto_scaling_enabled = true
vm_size = "Standard_DS2_v2"
min_count = 1
max_count = 1
upgrade_settings {
max_surge = "10%%"
}
Expand Down Expand Up @@ -1385,12 +1385,12 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestaks%d"

default_node_pool {
name = "default"
node_count = 2
vm_size = "Standard_DS2_v2"
enable_auto_scaling = true
max_count = 10
min_count = 1
name = "default"
node_count = 2
vm_size = "Standard_DS2_v2"
auto_scaling_enabled = true
max_count = 10
min_count = 1
upgrade_settings {
max_surge = "10%%"
}
Expand Down Expand Up @@ -1421,12 +1421,12 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestaks%d"

default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_auto_scaling = true
max_count = 10
min_count = 1
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
auto_scaling_enabled = true
max_count = 10
min_count = 1
upgrade_settings {
max_surge = "10%%"
}
Expand Down Expand Up @@ -1457,12 +1457,12 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestaks%d"

default_node_pool {
name = "default"
node_count = 11
vm_size = "Standard_DS2_v2"
enable_auto_scaling = true
max_count = 10
min_count = 1
name = "default"
node_count = 11
vm_size = "Standard_DS2_v2"
auto_scaling_enabled = true
max_count = 10
min_count = 1
upgrade_settings {
max_surge = "10%%"
}
Expand Down Expand Up @@ -1493,12 +1493,12 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestAKS%d"

default_node_pool {
name = "default"
vm_size = "Standard_DS2_v2"
enable_auto_scaling = true
min_count = 1
max_count = 399
node_count = 1
name = "default"
vm_size = "Standard_DS2_v2"
auto_scaling_enabled = true
min_count = 1
max_count = 399
node_count = 1
upgrade_settings {
max_surge = "10%%"
}
Expand Down Expand Up @@ -1529,12 +1529,12 @@ resource "azurerm_kubernetes_cluster" "test" {
dns_prefix = "acctestaks%d"

default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_auto_scaling = true
max_count = 10
min_count = 2
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
auto_scaling_enabled = true
max_count = 10
min_count = 2
upgrade_settings {
max_surge = "10%%"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestAccKubernetesCluster_hostEncryption(t *testing.T) {
Config: r.hostEncryption(data, currentKubernetesVersion),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("default_node_pool.0.enable_host_encryption").HasValue("true"),
check.That(data.ResourceName).Key("default_node_pool.0.host_encryption_enabled").HasValue("true"),
),
},
})
Expand Down Expand Up @@ -319,10 +319,10 @@ resource "azurerm_kubernetes_cluster" "test" {
kubernetes_version = %q

default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
enable_host_encryption = true
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
host_encryption_enabled = true
upgrade_settings {
max_surge = "10%%"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ resource "azurerm_kubernetes_cluster" "test" {
kubernetes_version = %q

default_node_pool {
name = "default"
vm_size = "Standard_DS2_v2"
enable_auto_scaling = true
min_count = %d
max_count = %d
name = "default"
vm_size = "Standard_DS2_v2"
auto_scaling_enabled = true
min_count = %d
max_count = %d
upgrade_settings {
max_surge = "10%%"
}
Expand Down
Loading
Loading