Skip to content

Commit

Permalink
eks/irsa: fix DeploymentTook field update
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 24d2754 commit a9ca6f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eks/irsa/irsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,6 @@ func (ts *tester) waitDeployment() error {
}
}
if available && dresp.Status.ReadyReplicas >= ts.cfg.EKSConfig.AddOnIRSA.DeploymentReplicas {
ts.cfg.EKSConfig.AddOnIRSA.DeploymentTook = time.Since(ts.deploymentCreated)
ts.cfg.EKSConfig.AddOnIRSA.DeploymentTookString = ts.cfg.EKSConfig.AddOnIRSA.DeploymentTook.String()
ts.cfg.EKSConfig.Sync()
ready = true
break
}
Expand Down Expand Up @@ -1163,6 +1160,9 @@ func (ts *tester) waitOutputLogs() error {
zap.Int("current", cnt),
)
if cnt >= expects {
ts.cfg.EKSConfig.AddOnIRSA.DeploymentTook = time.Since(ts.deploymentCreated)
ts.cfg.EKSConfig.AddOnIRSA.DeploymentTookString = ts.cfg.EKSConfig.AddOnIRSA.DeploymentTook.String()
ts.cfg.EKSConfig.Sync()
break
}
}
Expand Down

0 comments on commit a9ca6f0

Please sign in to comment.