1
0
mirror of synced 2026-04-01 14:19:30 +00:00

Add poll interval global variable

This commit is contained in:
stefanprodan
2020-04-29 10:48:12 +03:00
parent 6d66f42382
commit 1e03155e8b
5 changed files with 15 additions and 16 deletions

View File

@@ -64,7 +64,7 @@ func syncSourceGitCmdRun(cmd *cobra.Command, args []string) error {
logSuccess("source annotated")
logWaiting("waiting for git sync")
if err := wait.PollImmediate(2*time.Second, timeout,
if err := wait.PollImmediate(pollInterval, timeout,
isGitRepositoryReady(ctx, kubeClient, name, namespace)); err != nil {
return err
}