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:
authorMayra Cabrera <mcabrera@gitlab.com>2019-04-02 09:54:54 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2019-04-02 09:54:54 +0300
commit6473f6976124f047a56f9d004e3d0746ab493b29 (patch)
treea4d157a4a436d1a0151651b17ac4e9790b124ef7 /spec/factories
parentc44b9e9e5b79c4012a0fea8743fc058a444234d0 (diff)
Add new field to Clusters table
Adds boolean field 'managed' to clusters table. This new column will be used to distinguish those clusters that are automatically managed by gitlab. Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/clusters/clusters.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/clusters/clusters.rb b/spec/factories/clusters/clusters.rb
index 1cc3c0e03d8..97405ec7c58 100644
--- a/spec/factories/clusters/clusters.rb
+++ b/spec/factories/clusters/clusters.rb
@@ -3,6 +3,7 @@ FactoryBot.define do
user
name 'test-cluster'
cluster_type :project_type
+ managed true
trait :instance do
cluster_type { Clusters::Cluster.cluster_types[:instance_type] }
@@ -63,5 +64,9 @@ FactoryBot.define do
trait :with_domain do
domain 'example.com'
end
+
+ trait :user_managed do
+ managed false
+ end
end
end