Skip to content

Commit f218343

Browse files
authored
Merge pull request #464 from lonegunmanb/e-460
Add `fips_enabled` support for `default_node_pool` block
2 parents 0caa8e3 + f3d9974 commit f218343

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ No modules.
298298
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | (Optional) The name for the AKS resources created in the specified Azure Resource Group. This variable overwrites the 'prefix' var (The 'prefix' var will still be applied to the dns\_prefix if it is set) | `string` | `null` | no |
299299
| <a name="input_confidential_computing"></a> [confidential\_computing](#input\_confidential\_computing) | (Optional) Enable Confidential Computing. | <pre>object({<br> sgx_quote_helper_enabled = bool<br> })</pre> | `null` | no |
300300
| <a name="input_create_role_assignment_network_contributor"></a> [create\_role\_assignment\_network\_contributor](#input\_create\_role\_assignment\_network\_contributor) | (Deprecated) Create a role assignment for the AKS Service Principal to be a Network Contributor on the subnets used for the AKS Cluster | `bool` | `false` | no |
301+
| <a name="input_default_node_pool_fips_enabled"></a> [default\_node\_pool\_fips\_enabled](#input\_default\_node\_pool\_fips\_enabled) | (Optional) Should the nodes in this Node Pool have Federal Information Processing Standard enabled? Changing this forces a new resource to be created. | `bool` | `null` | no |
301302
| <a name="input_disk_encryption_set_id"></a> [disk\_encryption\_set\_id](#input\_disk\_encryption\_set\_id) | (Optional) The ID of the Disk Encryption Set which should be used for the Nodes and Volumes. More information [can be found in the documentation](https://docs.microsoft.com/azure/aks/azure-disk-customer-managed-keys). Changing this forces a new resource to be created. | `string` | `null` | no |
302303
| <a name="input_ebpf_data_plane"></a> [ebpf\_data\_plane](#input\_ebpf\_data\_plane) | (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. | `string` | `null` | no |
303304
| <a name="input_enable_auto_scaling"></a> [enable\_auto\_scaling](#input\_enable\_auto\_scaling) | Enable node pool autoscaling | `bool` | `false` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ resource "azurerm_kubernetes_cluster" "main" {
5656
enable_auto_scaling = var.enable_auto_scaling
5757
enable_host_encryption = var.enable_host_encryption
5858
enable_node_public_ip = var.enable_node_public_ip
59+
fips_enabled = var.default_node_pool_fips_enabled
5960
max_count = null
6061
max_pods = var.agents_max_pods
6162
min_count = null
@@ -157,6 +158,7 @@ resource "azurerm_kubernetes_cluster" "main" {
157158
enable_auto_scaling = var.enable_auto_scaling
158159
enable_host_encryption = var.enable_host_encryption
159160
enable_node_public_ip = var.enable_node_public_ip
161+
fips_enabled = var.default_node_pool_fips_enabled
160162
max_count = var.agents_max_count
161163
max_pods = var.agents_max_pods
162164
min_count = var.agents_min_count

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,12 @@ variable "create_role_assignment_network_contributor" {
403403
nullable = false
404404
}
405405

406+
variable "default_node_pool_fips_enabled" {
407+
type = bool
408+
default = null
409+
description = " (Optional) Should the nodes in this Node Pool have Federal Information Processing Standard enabled? Changing this forces a new resource to be created."
410+
}
411+
406412
variable "disk_encryption_set_id" {
407413
type = string
408414
default = null

0 commit comments

Comments
 (0)