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
path: root/lib
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-06-14 08:57:48 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2019-06-14 09:00:54 +0300
commitee28255b21b712bf3d92db548915fee43658a430 (patch)
tree8a9245f37926c8e8e578c0f75ac9b7d5df93ea67 /lib
parentf35d3a241caab4c4b926d1ad6fee64ad1bdf8625 (diff)
Refresh service_account_token for kubernetes_namespaces
There seems to be several examples where service_account_token is blank even in GitLab.com newly created kubernetes_namespaces . We have not figured out why they are blank but this should hopefully fix some issues similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/55362
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/build/prerequisite/kubernetes_namespace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/build/prerequisite/kubernetes_namespace.rb b/lib/gitlab/ci/build/prerequisite/kubernetes_namespace.rb
index dbdc59505ac..531c9ce4256 100644
--- a/lib/gitlab/ci/build/prerequisite/kubernetes_namespace.rb
+++ b/lib/gitlab/ci/build/prerequisite/kubernetes_namespace.rb
@@ -9,7 +9,7 @@ module Gitlab
deployment_cluster.present? &&
deployment_cluster.managed? &&
!deployment_cluster.project_type? &&
- kubernetes_namespace.new_record?
+ (kubernetes_namespace.new_record? || kubernetes_namespace.service_account_token.blank?)
end
def complete!