File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,8 @@ func (c *IPAMContext) nodeInit() error {
529
529
530
530
// On node init, check if datastore pool needs to be increased. If so, attach CIDRs from existing ENIs and attach new ENIs.
531
531
if ! c .disableENIProvisioning && c .isDatastorePoolTooLow () {
532
- if err := c .increaseDatastorePool (ctx ); err != nil {
532
+ err := c .increaseDatastorePool (ctx )
533
+ if err != nil {
533
534
// Note that the only error currently returned by increaseDatastorePool is an error attaching CIDRs (other than insufficient IPs)
534
535
podENIErrInc ("nodeInit" )
535
536
return errors .New ("error while trying to increase datastore pool" )
@@ -636,6 +637,10 @@ func (c *IPAMContext) updateIPPoolIfRequired(ctx context.Context) {
636
637
637
638
if c .isDatastorePoolTooLow () {
638
639
c .increaseDatastorePool (ctx )
640
+ // Speeds up ENI scale up
641
+ for c .isDatastorePoolTooLow () {
642
+ c .increaseDatastorePool (ctx )
643
+ }
639
644
} else if c .isDatastorePoolTooHigh () {
640
645
c .decreaseDatastorePool (decreaseIPPoolInterval )
641
646
}
You can’t perform that action at this time.
0 commit comments