@@ -1189,31 +1189,31 @@ func tkeGetNodePoolGlobalConfig(d *schema.ResourceData) *tke.ModifyClusterAsGrou
1189
1189
request .ClusterId = helper .String (d .Id ())
1190
1190
1191
1191
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 {
1193
1193
clusterAsGroupOption .IsScaleDownEnabled = helper .Bool (v .(bool ))
1194
1194
}
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 {
1196
1196
clusterAsGroupOption .Expander = helper .String (v .(string ))
1197
1197
}
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 {
1199
1199
clusterAsGroupOption .MaxEmptyBulkDelete = helper .IntInt64 (v .(int ))
1200
1200
}
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 {
1202
1202
clusterAsGroupOption .ScaleDownDelay = helper .IntInt64 (v .(int ))
1203
1203
}
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 {
1205
1205
clusterAsGroupOption .ScaleDownUnneededTime = helper .IntInt64 (v .(int ))
1206
1206
}
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 {
1208
1208
clusterAsGroupOption .ScaleDownUtilizationThreshold = helper .IntInt64 (v .(int ))
1209
1209
}
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 {
1211
1211
clusterAsGroupOption .IgnoreDaemonSetsUtilization = helper .Bool (v .(bool ))
1212
1212
}
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 {
1214
1214
clusterAsGroupOption .SkipNodesWithLocalStorage = helper .Bool (v .(bool ))
1215
1215
}
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 {
1217
1217
clusterAsGroupOption .SkipNodesWithSystemPods = helper .Bool (v .(bool ))
1218
1218
}
1219
1219
0 commit comments