Skip to content

Commit

Permalink
change refresh to every 2 minutes for update call (#4184)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-town authored Jan 23, 2024
1 parent c3e1493 commit ccd5703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/commands/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -1171,8 +1171,8 @@ func checkDeploymentStatus(ctx context.Context, client api.Client, cliConfig con
}

for time.Now().Before(timeWait) {
// refresh the client every 10 minutes
if time.Now().After(prevRefresh.Add(10 * time.Minute)) {
// refresh the client every 2 minutes, as the kubeconfig has a minimum TTL of 5 minutes
if time.Now().After(prevRefresh.Add(2 * time.Minute)) {
err = sharedConf.setSharedConfig(ctx)

if err != nil {
Expand Down

0 comments on commit ccd5703

Please sign in to comment.