Skip to content

Commit

Permalink
eks: increase list nodes batch limit
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
  • Loading branch information
gyuho committed Jul 10, 2020
1 parent d924eb6 commit 7d36a80
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eks/irsa-fargate/irsa-fargate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ func (ts *tester) checkNodeReadiness() error {

desired := 1

nodes, err := ts.cfg.K8SClient.ListNodes(150, 5*time.Second)
nodes, err := ts.cfg.K8SClient.ListNodes(1000, 5*time.Second)
if err != nil {
ts.cfg.Logger.Warn("get nodes failed", zap.Error(err))
return err
Expand Down
2 changes: 1 addition & 1 deletion eks/mng/version-upgrade/version-upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (ts *tester) Upgrade(mngName string) (err error) {
wait.WithQueryFunc(func() {
fmt.Fprintf(ts.cfg.LogWriter, "\n")
ts.cfg.Logger.Info("listing nodes while polling mng update status", zap.String("mng-name", mngName))
nodes, err := ts.cfg.K8SClient.ListNodes(150, 5*time.Second)
nodes, err := ts.cfg.K8SClient.ListNodes(1000, 5*time.Second)
if err != nil {
ts.cfg.Logger.Warn("failed to list nodes while polling mng update status", zap.Error(err))
return
Expand Down
2 changes: 1 addition & 1 deletion eks/mng/wait/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (ts *tester) waitForNodes(mngName string, retriesLeft int) error {
case <-time.After(5 * time.Second):
}

nodes, err := ts.cfg.K8SClient.ListNodes(150, 5*time.Second)
nodes, err := ts.cfg.K8SClient.ListNodes(1000, 5*time.Second)
if err != nil {
ts.cfg.Logger.Warn("get nodes failed", zap.Error(err))
continue
Expand Down
2 changes: 1 addition & 1 deletion eks/ng/wait/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (ts *tester) waitForNodes(asgName string, retriesLeft int) error {
case <-time.After(5 * time.Second):
}

nodes, err := ts.cfg.K8SClient.ListNodes(150, 5*time.Second)
nodes, err := ts.cfg.K8SClient.ListNodes(1000, 5*time.Second)
if err != nil {
ts.cfg.Logger.Warn("get nodes failed", zap.Error(err))
continue
Expand Down

0 comments on commit 7d36a80

Please sign in to comment.