@@ -273,6 +273,12 @@ func resourceNodeConfiguration() *schema.Resource {
273273 return oldValue == newValue
274274 },
275275 },
276+ "threads_per_cpu" : {
277+ Type : schema .TypeInt ,
278+ Optional : true ,
279+ Description : "Number of threads per core." ,
280+ ValidateDiagFunc : validation .ToDiagFunc (validation .IntBetween (0 , 256 )),
281+ },
276282 FieldNodeConfigurationEKSImageFamily : {
277283 Type : schema .TypeString ,
278284 Optional : true ,
@@ -935,6 +941,10 @@ func toEKSConfig(obj map[string]interface{}) *sdk.NodeconfigV1EKSConfig {
935941 out .IpsPerPrefix = toPtr (int32 (v ))
936942 }
937943
944+ if v , ok := obj ["threads_per_cpu" ].(int ); ok && v != 0 {
945+ out .ThreadsPerCpu = toPtr (int32 (v ))
946+ }
947+
938948 if v , ok := obj [FieldNodeConfigurationEKSTargetGroup ].([]any ); ok && len (v ) > 0 {
939949 resultTGs := make ([]sdk.NodeconfigV1TargetGroup , 0 , len (v ))
940950 for _ , tgRaw := range v {
@@ -1024,6 +1034,10 @@ func flattenEKSConfig(config *sdk.NodeconfigV1EKSConfig) []map[string]interface{
10241034 m ["ips_per_prefix" ] = * config .IpsPerPrefix
10251035 }
10261036
1037+ if v := config .ThreadsPerCpu ; v != nil {
1038+ m ["threads_per_cpu" ] = * config .ThreadsPerCpu
1039+ }
1040+
10271041 if v := config .TargetGroups ; v != nil && len (* v ) > 0 {
10281042 tgs := make ([]any , 0 , len (* v ))
10291043 for _ , tg := range * v {
@@ -1162,7 +1176,6 @@ func toAKSNodePublicIP(obj any) *sdk.NodeconfigV1AKSConfigPublicIP {
11621176 }
11631177
11641178 return publicIP
1165-
11661179}
11671180
11681181func toAKSEphemeralOSDisk (obj any ) * sdk.NodeconfigV1AKSConfigOsDiskEphemeral {
@@ -1359,7 +1372,6 @@ func fromAKSNodePublicIP(sdkPublicIp *sdk.NodeconfigV1AKSConfigPublicIP) []map[s
13591372 }
13601373
13611374 return []map [string ]any {m }
1362-
13631375}
13641376
13651377func fromAKSEphemeralOSDisk (sdkEph * sdk.NodeconfigV1AKSConfigOsDiskEphemeral ) []map [string ]interface {} {
@@ -1578,7 +1590,6 @@ func toGkeUnmanagedInstanceGroups(obj []interface{}) *[]sdk.NodeconfigV1GKEConfi
15781590 }
15791591
15801592 return & out
1581-
15821593}
15831594
15841595func flattenGKEConfig (config * sdk.NodeconfigV1GKEConfig ) []map [string ]interface {} {
0 commit comments