Переглянути джерело

change refresh to every 2 minutes for update call (#4184)

d-g-town 2 роки тому
батько
коміт
ccd5703506
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      cli/cmd/commands/update.go

+ 2 - 2
cli/cmd/commands/update.go

@@ -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 {