Skip to content

Commit

Permalink
eks: use "AvailableReplicas"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
  • Loading branch information
gyuho committed Feb 12, 2020
1 parent 7799f4d commit 1137f16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eks/alb/alb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ func (ts *tester) waitDeployment2048() error {
break
}
}
if available && dresp.Status.ReadyReplicas >= ts.cfg.EKSConfig.AddOnALB2048.DeploymentReplicas2048 {
if available && dresp.Status.AvailableReplicas >= ts.cfg.EKSConfig.AddOnALB2048.DeploymentReplicas2048 {
ready = true
break
}
Expand Down
2 changes: 1 addition & 1 deletion eks/irsa/irsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ func (ts *tester) waitDeployment() error {
break
}
}
if available && dresp.Status.ReadyReplicas >= ts.cfg.EKSConfig.AddOnIRSA.DeploymentReplicas {
if available && dresp.Status.AvailableReplicas >= ts.cfg.EKSConfig.AddOnIRSA.DeploymentReplicas {
ready = true
break
}
Expand Down
2 changes: 1 addition & 1 deletion eks/nlb/nlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (ts *tester) waitDeployment() error {
break
}
}
if available && dresp.Status.ReadyReplicas >= ts.cfg.EKSConfig.AddOnNLBHelloWorld.DeploymentReplicas {
if available && dresp.Status.AvailableReplicas >= ts.cfg.EKSConfig.AddOnNLBHelloWorld.DeploymentReplicas {
ready = true
break
}
Expand Down

0 comments on commit 1137f16

Please sign in to comment.