@@ -1189,31 +1189,31 @@ func tkeGetNodePoolGlobalConfig(d *schema.ResourceData) *tke.ModifyClusterAsGrou
11891189 request .ClusterId = helper .String (d .Id ())
11901190
11911191 clusterAsGroupOption := & tke.ClusterAsGroupOption {}
1192- if v , ok := d .GetOk ("node_pool_global_config.0.is_scale_in_enabled" ); ok {
1192+ if v , ok := d .GetOkExists ("node_pool_global_config.0.is_scale_in_enabled" ); ok {
11931193 clusterAsGroupOption .IsScaleDownEnabled = helper .Bool (v .(bool ))
11941194 }
1195- if v , ok := d .GetOk ("node_pool_global_config.0.expander" ); ok {
1195+ if v , ok := d .GetOkExists ("node_pool_global_config.0.expander" ); ok {
11961196 clusterAsGroupOption .Expander = helper .String (v .(string ))
11971197 }
1198- if v , ok := d .GetOk ("node_pool_global_config.0.max_concurrent_scale_in" ); ok {
1198+ if v , ok := d .GetOkExists ("node_pool_global_config.0.max_concurrent_scale_in" ); ok {
11991199 clusterAsGroupOption .MaxEmptyBulkDelete = helper .IntInt64 (v .(int ))
12001200 }
1201- if v , ok := d .GetOk ("node_pool_global_config.0.scale_in_delay" ); ok {
1201+ if v , ok := d .GetOkExists ("node_pool_global_config.0.scale_in_delay" ); ok {
12021202 clusterAsGroupOption .ScaleDownDelay = helper .IntInt64 (v .(int ))
12031203 }
1204- if v , ok := d .GetOk ("node_pool_global_config.0.scale_in_unneeded_time" ); ok {
1204+ if v , ok := d .GetOkExists ("node_pool_global_config.0.scale_in_unneeded_time" ); ok {
12051205 clusterAsGroupOption .ScaleDownUnneededTime = helper .IntInt64 (v .(int ))
12061206 }
1207- if v , ok := d .GetOk ("node_pool_global_config.0.scale_in_utilization_threshold" ); ok {
1207+ if v , ok := d .GetOkExists ("node_pool_global_config.0.scale_in_utilization_threshold" ); ok {
12081208 clusterAsGroupOption .ScaleDownUtilizationThreshold = helper .IntInt64 (v .(int ))
12091209 }
1210- if v , ok := d .GetOk ("node_pool_global_config.0.ignore_daemon_sets_utilization" ); ok {
1210+ if v , ok := d .GetOkExists ("node_pool_global_config.0.ignore_daemon_sets_utilization" ); ok {
12111211 clusterAsGroupOption .IgnoreDaemonSetsUtilization = helper .Bool (v .(bool ))
12121212 }
1213- if v , ok := d .GetOk ("node_pool_global_config.0.skip_nodes_with_local_storage" ); ok {
1213+ if v , ok := d .GetOkExists ("node_pool_global_config.0.skip_nodes_with_local_storage" ); ok {
12141214 clusterAsGroupOption .SkipNodesWithLocalStorage = helper .Bool (v .(bool ))
12151215 }
1216- if v , ok := d .GetOk ("node_pool_global_config.0.skip_nodes_with_system_pods" ); ok {
1216+ if v , ok := d .GetOkExists ("node_pool_global_config.0.skip_nodes_with_system_pods" ); ok {
12171217 clusterAsGroupOption .SkipNodesWithSystemPods = helper .Bool (v .(bool ))
12181218 }
12191219
0 commit comments