You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: rename variables for consistency with Azure resource schema
BREAKING CHANGES:
- Rename �nable_auto_scaling to �uto_scaling_enabled in variables and node_pools
- Rename �nable_host_encryption to host_encryption_enabled in variables and node_pools
- Rename �nable_node_public_ip to
ode_public_ip_enabled in variables and node_pools
These changes align variable naming with Azure resource schema conventions
and improve API consistency. Updated all references across:
- Root module variables and main resources
- Additional node pool resources
- Example configurations
- Documentation and upgrade notices
Fixes#685
`v11.0.0` removed support for Terraform AzureRM provider `v3` and removed `//v4` folder. All users need to use `Azure/aks/azurerm` instead of `Azure/aks/azurerm//v4` as module `source`.
6
+
7
+
## `var.enable_auto_scaling` has been renamed to `var.auto_scaling_enabled`
8
+
9
+
This change also affects the `node_pools` variable where `node_pools[*].enable_auto_scaling` should be replaced with `node_pools[*].auto_scaling_enabled`.
10
+
11
+
## `var.enable_host_encryption` has been renamed to `var.host_encryption_enabled`
12
+
13
+
This change also affects the `node_pools` variable where `node_pools[*].enable_host_encryption` should be replaced with `node_pools[*].host_encryption_enabled`.
14
+
15
+
## `var.enable_node_public_ip` has been renamed to `var.node_public_ip_enabled`
16
+
17
+
This change also affects the `node_pools` variable where `node_pools[*].enable_node_public_ip` should be replaced with `node_pools[*].node_public_ip_enabled`.
error_message="When `kubelet_identity` is enabled - The `type` field in the `identity` block must be set to `UserAssigned` and `identity_ids` must be set."
description="The number of Agents that should exist in the Agent Pool. Please set `agents_count` `null` while `enable_auto_scaling` is `true` to avoid possible `agents_count` changes."
38
+
description="The number of Agents that should exist in the Agent Pool. Please set `agents_count` `null` while `auto_scaling_enabled` is `true` to avoid possible `agents_count` changes."
description="(Optional) Specifies the eBPF data plane used for building the Kubernetes network. Possible value is `cilium`. Changing this forces a new resource to be created."
504
504
}
505
505
506
-
variable"enable_auto_scaling" {
506
+
variable"auto_scaling_enabled" {
507
507
type=bool
508
508
default=false
509
509
description="Enable node pool autoscaling"
510
510
}
511
511
512
-
variable"enable_host_encryption" {
512
+
variable"host_encryption_enabled" {
513
513
type=bool
514
514
default=false
515
515
description="Enable Host Encryption for default node pool. Encryption at host feature must be enabled on the subscription: https://docs.microsoft.com/azure/virtual-machines/linux/disks-enable-host-based-encryption-cli"
516
516
}
517
517
518
-
variable"enable_node_public_ip" {
518
+
variable"node_public_ip_enabled" {
519
519
type=bool
520
520
default=false
521
521
description="(Optional) Should nodes in this Node Pool have a Public IP Address? Defaults to false."
@@ -1058,9 +1058,9 @@ variable "node_pools" {
1058
1058
host_group_id =optional(string)
1059
1059
capacity_reservation_group_id =optional(string)
1060
1060
custom_ca_trust_enabled =optional(bool)
1061
-
enable_auto_scaling =optional(bool)
1062
-
enable_host_encryption =optional(bool)
1063
-
enable_node_public_ip =optional(bool)
1061
+
auto_scaling_enabled=optional(bool)
1062
+
host_encryption_enabled=optional(bool)
1063
+
node_public_ip_enabled=optional(bool)
1064
1064
eviction_policy =optional(string)
1065
1065
gpu_instance =optional(string)
1066
1066
kubelet_config =optional(object({
@@ -1171,9 +1171,9 @@ variable "node_pools" {
1171
1171
host_group_id = (Optional) The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from. Changing this forces a new resource to be created.
1172
1172
capacity_reservation_group_id = (Optional) Specifies the ID of the Capacity Reservation Group where this Node Pool should exist. Changing this forces a new resource to be created.
1173
1173
custom_ca_trust_enabled = (Optional) Specifies whether to trust a Custom CA. This requires that the Preview Feature `Microsoft.ContainerService/CustomCATrustPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority) for more information.
1174
-
enable_auto_scaling = (Optional) Whether to enable [auto-scaler](https://docs.microsoft.com/azure/aks/cluster-autoscaler).
1175
-
enable_host_encryption = (Optional) Should the nodes in this Node Pool have host encryption enabled? Changing this forces a new resource to be created.
1176
-
enable_node_public_ip = (Optional) Should each node have a Public IP Address? Changing this forces a new resource to be created.
1174
+
auto_scaling_enabled = (Optional) Whether to enable [auto-scaler](https://docs.microsoft.com/azure/aks/cluster-autoscaler).
1175
+
host_encryption_enabled = (Optional) Should the nodes in this Node Pool have host encryption enabled? Changing this forces a new resource to be created.
1176
+
node_public_ip_enabled = (Optional) Should each node have a Public IP Address? Changing this forces a new resource to be created.
1177
1177
eviction_policy = (Optional) The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. An Eviction Policy can only be configured when `priority` is set to `Spot` and will default to `Delete` unless otherwise specified.
1178
1178
gpu_instance = (Optional) Specifies the GPU MIG instance profile for supported GPU VM SKU. The allowed values are `MIG1g`, `MIG2g`, `MIG3g`, `MIG4g` and `MIG7g`. Changing this forces a new resource to be created.
1179
1179
kubelet_config = optional(object({
@@ -1241,7 +1241,7 @@ variable "node_pools" {
1241
1241
}))
1242
1242
}))
1243
1243
node_labels = (Optional) A map of Kubernetes labels which should be applied to nodes in this Node Pool.
1244
-
node_public_ip_prefix_id = (Optional) Resource ID for the Public IP Addresses Prefix for the nodes in this Node Pool. `enable_node_public_ip` should be `true`. Changing this forces a new resource to be created.
1244
+
node_public_ip_prefix_id = (Optional) Resource ID for the Public IP Addresses Prefix for the nodes in this Node Pool. `node_public_ip_enabled` should be `true`. Changing this forces a new resource to be created.
1245
1245
node_taints = (Optional) A list of Kubernetes taints which should be applied to nodes in the agent pool (e.g `key=value:NoSchedule`). Changing this forces a new resource to be created.
1246
1246
orchestrator_version = (Optional) Version of Kubernetes used for the Agents. If not specified, the latest recommended version will be used at provisioning time (but won't auto-upgrade). AKS does not require an exact patch version to be specified, minor version aliases such as `1.22` are also supported. - The minor version's latest GA patch is automatically chosen in that case. More details can be found in [the documentation](https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#alias-minor-version). This version must be supported by the Kubernetes Cluster - as such the version of Kubernetes used on the Cluster/Control Plane may need to be upgraded first.
1247
1247
os_disk_size_gb = (Optional) The Agent Operating System disk size in GB. Changing this forces a new resource to be created.
0 commit comments