You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google/services/container/resource_container_node_pool.go
+121-6
Original file line number
Diff line number
Diff line change
@@ -391,6 +391,57 @@ var schemaNodePool = map[string]*schema.Schema{
391
391
ValidateFunc: verify.ValidateIpCidrRange,
392
392
Description: `The IP address range for pod IPs in this node pool. Only applicable if create_pod_range is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) to pick a specific range to use.`,
393
393
},
394
+
"additional_node_network_configs": {
395
+
Type: schema.TypeList,
396
+
Optional: true,
397
+
ForceNew: true,
398
+
Description: `We specify the additional node networks for this node pool using this list. Each node network corresponds to an additional interface`,
399
+
Elem: &schema.Resource{
400
+
Schema: map[string]*schema.Schema{
401
+
"network": {
402
+
Type: schema.TypeString,
403
+
Optional: true,
404
+
ForceNew: true,
405
+
Description: `Name of the VPC where the additional interface belongs.`,
406
+
},
407
+
"subnetwork": {
408
+
Type: schema.TypeString,
409
+
Optional: true,
410
+
ForceNew: true,
411
+
Description: `Name of the subnetwork where the additional interface belongs.`,
412
+
},
413
+
},
414
+
},
415
+
},
416
+
"additional_pod_network_configs": {
417
+
Type: schema.TypeList,
418
+
Optional: true,
419
+
ForceNew: true,
420
+
Description: `We specify the additional pod networks for this node pool using this list. Each pod network corresponds to an additional alias IP range for the node`,
421
+
Elem: &schema.Resource{
422
+
Schema: map[string]*schema.Schema{
423
+
"subnetwork": {
424
+
Type: schema.TypeString,
425
+
Optional: true,
426
+
ForceNew: true,
427
+
Description: `Name of the subnetwork where the additional pod network belongs.`,
428
+
},
429
+
"secondary_pod_range": {
430
+
Type: schema.TypeString,
431
+
Optional: true,
432
+
ForceNew: true,
433
+
Description: `The name of the secondary range on the subnet which provides IP address for this pod range.`,
434
+
},
435
+
"max_pods_per_node": {
436
+
Type: schema.TypeInt,
437
+
Optional: true,
438
+
ForceNew: true,
439
+
Computed: true,
440
+
Description: `The maximum number of pods per node which use this pod network.`,
441
+
},
442
+
},
443
+
},
444
+
},
394
445
"pod_cidr_overprovision_config": {
395
446
Type: schema.TypeList,
396
447
Optional: true,
@@ -1164,12 +1215,14 @@ func flattenNodeNetworkConfig(c *container.NodeNetworkConfig, d *schema.Resource
1164
1215
result:= []map[string]interface{}{}
1165
1216
ifc!=nil {
1166
1217
result=append(result, map[string]interface{}{
1167
-
"create_pod_range": d.Get(prefix+"network_config.0.create_pod_range"), // API doesn't return this value so we set the old one. Field is ForceNew + Required
"create_pod_range": d.Get(prefix+"network_config.0.create_pod_range"), // API doesn't return this value so we set the old one. Field is ForceNew + Required
0 commit comments