Skip to content

Commit fb47719

Browse files
author
Furkhat Kasymov Genii Uulu
committed
prefix /28 gives 16 ips for ipv4
1 parent da76cff commit fb47719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

castai/resource_node_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ func resourceNodeConfiguration() *schema.Resource {
265265
Type: schema.TypeInt,
266266
Optional: true,
267267
Default: nil,
268-
Description: "Number of IPs per prefix to be used for calculating max pods.",
268+
Description: "Number of IPs per prefix to be used for calculating max pods. For IPv4 it should be 16. More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html#ec2-prefix-basics",
269269
ValidateDiagFunc: validation.ToDiagFunc(validation.IntBetween(0, 256)),
270270
DiffSuppressFunc: func(k, oldValue, newValue string, d *schema.ResourceData) bool {
271271
log.Printf("[DEBUG] changing 'ips_per_prefix' attribute for eks: old=%s, new=%s", oldValue, newValue)
272-
if oldValue == "1" && newValue == "0" {
272+
if (oldValue == "1" || oldValue == "16") && newValue == "0" {
273273
return true
274274
}
275275
return oldValue == newValue

0 commit comments

Comments
 (0)