Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-11-15 17:21:32 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-11-16 13:57:27 +0300
commit9b1a99b03d114e88e2512c75f9711cb38b34bc0c (patch)
tree009d848349452d7f234d951614bd602e7a83474b /lib/gitlab/kubernetes
parenta71b3f6a7c13fdc0978a1e9d0151fe15399b8b59 (diff)
Use helm version loop instead of sleep in ClientCommand
Diffstat (limited to 'lib/gitlab/kubernetes')
-rw-r--r--lib/gitlab/kubernetes/helm/client_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/kubernetes/helm/client_command.rb b/lib/gitlab/kubernetes/helm/client_command.rb
index 0ff0169b61d..bc554684fc7 100644
--- a/lib/gitlab/kubernetes/helm/client_command.rb
+++ b/lib/gitlab/kubernetes/helm/client_command.rb
@@ -14,7 +14,7 @@ module Gitlab
# This is necessary to give Tiller time to restart after upgrade.
# Ideally we'd be able to use --wait but cannot because of
# https://github.com/helm/helm/issues/4855
- 'sleep 30'
+ 'for i in $(seq 1 30); do helm version && break; sleep 1s; echo "Retrying ($i)..."; done'
end
def repository_command