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:
authorJames Fargher <proglottis@gmail.com>2019-05-24 11:39:59 +0300
committerJames Fargher <proglottis@gmail.com>2019-05-30 15:22:50 +0300
commit1a25ad3e578c9f3a0682551b7bef0a554c2763b8 (patch)
tree2f5746e6b140dd30908a6fc872d049f0c80b4f04 /app/models/clusters
parentf26884a0a82c7540b0b81e59c05ea7d75fbd2dd8 (diff)
Allow a user defined namespace on non-gitlab managed clusters
Since they are not GitLab managed we wont make assumptions about the namespaces used
Diffstat (limited to 'app/models/clusters')
-rw-r--r--app/models/clusters/cluster.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb
index 57a1e461b2d..e23fb9f85c1 100644
--- a/app/models/clusters/cluster.rb
+++ b/app/models/clusters/cluster.rb
@@ -208,7 +208,7 @@ module Clusters
end
def allow_user_defined_namespace?
- project_type?
+ project_type? || !managed?
end
def kube_ingress_domain