summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-07-12 11:55:57 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-07-12 11:55:57 +0200
commit58d16655e97e09d153676339dddc9a3f45e29ec8 (patch)
tree2152a33e2ec7d6f502f4b7d85ec8fa2824920cda /qa
parent3d4873fa64c833c71ab7ee274002d854eb93ef96 (diff)
downloadgitlab-ce-58d16655e97e09d153676339dddc9a3f45e29ec8.tar.gz
Add sleep to QA test before installing tiller49139-sleep-before-installing-tiller-to-prevent-race-condition
Otherwise we ocassionally see a race condition error: No API token found for service account "default", retry after the token is automatically created and added to the service account Waiting 10 seconds should remove this risk.
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/factory/resource/kubernetes_cluster.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/qa/factory/resource/kubernetes_cluster.rb b/qa/qa/factory/resource/kubernetes_cluster.rb
index f32cf985e9d..1c9e5f94b22 100644
--- a/qa/qa/factory/resource/kubernetes_cluster.rb
+++ b/qa/qa/factory/resource/kubernetes_cluster.rb
@@ -36,6 +36,9 @@ module QA
if @install_helm_tiller
Page::Project::Operations::Kubernetes::Show.perform do |page|
+ # We must wait a few seconds for permissions to be setup correctly for new cluster
+ sleep 10
+
# Helm must be installed before everything else
page.install!(:helm)
page.await_installed(:helm)