From f581fa5b7dccbabf0336cb751b45db0418cb1a96 Mon Sep 17 00:00:00 2001 From: Mike Klebolt Date: Wed, 18 Oct 2023 14:10:54 -0500 Subject: [PATCH] Add ability to cycle nodepool for fips_enabled --- internal/services/containers/kubernetes_cluster_resource.go | 1 + website/docs/r/kubernetes_cluster.html.markdown | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/services/containers/kubernetes_cluster_resource.go b/internal/services/containers/kubernetes_cluster_resource.go index 75bda5ae026fa..a83345d2dfc03 100644 --- a/internal/services/containers/kubernetes_cluster_resource.go +++ b/internal/services/containers/kubernetes_cluster_resource.go @@ -2393,6 +2393,7 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} "default_node_pool.0.name", "default_node_pool.0.enable_host_encryption", "default_node_pool.0.enable_node_public_ip", + "default_node_pool.0.fips_enabled", "default_node_pool.0.kubelet_config", "default_node_pool.0.linux_os_config", "default_node_pool.0.max_pods", diff --git a/website/docs/r/kubernetes_cluster.html.markdown b/website/docs/r/kubernetes_cluster.html.markdown index a6cf7511ee230..72b458c9f0808 100644 --- a/website/docs/r/kubernetes_cluster.html.markdown +++ b/website/docs/r/kubernetes_cluster.html.markdown @@ -372,7 +372,7 @@ An `monitor_metrics` block supports the following: A `default_node_pool` block supports the following: --> **Note:** Changing certain properties of the `default_node_pool` is done by cycling the system node pool of the cluster. When cycling the system node pool, it doesn't perform cordon and drain, and it will disrupt rescheduling pods currently running on the previous system node pool.`temporary_name_for_rotation` must be specified when changing any of the following properties: `enable_host_encryption`, `enable_node_public_ip`, `kubelet_config`, `linux_os_config`, `max_pods`, `node_taints`, `only_critical_addons_enabled`, `os_disk_size_gb`, `os_disk_type`, `os_sku`, `pod_subnet_id`, `snapshot_id`, `ultra_ssd_enabled`, `vnet_subnet_id`, `vm_size`, `zones`. +-> **Note:** Changing certain properties of the `default_node_pool` is done by cycling the system node pool of the cluster. When cycling the system node pool, it doesn't perform cordon and drain, and it will disrupt rescheduling pods currently running on the previous system node pool.`temporary_name_for_rotation` must be specified when changing any of the following properties: `enable_host_encryption`, `enable_node_public_ip`, `fips_enabled`, `kubelet_config`, `linux_os_config`, `max_pods`, `node_taints`, `only_critical_addons_enabled`, `os_disk_size_gb`, `os_disk_type`, `os_sku`, `pod_subnet_id`, `snapshot_id`, `ultra_ssd_enabled`, `vnet_subnet_id`, `vm_size`, `zones`. * `name` - (Required) The name which should be used for the default Kubernetes Node Pool. Changing this forces a new resource to be created. @@ -404,7 +404,7 @@ A `default_node_pool` block supports the following: * `linux_os_config` - (Optional) A `linux_os_config` block as defined below. `temporary_name_for_rotation` must be specified when changing this block. -* `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. +* `fips_enabled` - (Optional) Should the nodes in this Node Pool have Federal Information Processing Standard enabled? `temporary_name_for_rotation` must be specified when changing this block. * `kubelet_disk_type` - (Optional) The type of disk used by kubelet. Possible values are `OS` and `Temporary`.