gitlab-org--gitlab-foss/spec/factories/clusters
Thong Kuah 0e15eec86d Associate clusters model to groups
Even though we currently only should have one group for a cluster, we
allow the flexibility to associate to other groups in the future.

This also matches the runner <=> groups association.

- Adds Cluster#first_group, aliased to Cluster#group. For the
conceivable future, a cluster will have at most one group.

- Prevent mixing of group and project clusters. If project type
clusters, it should only have projects assigned.  Similarly with groups.

- Default cluster_type to :project_type. As it's very small table we can
set default and null: false in one release.
2018-10-29 16:21:31 +13:00
..
applications Merge branch 'fix-todo-cops' into 'master' 2018-10-04 10:17:43 +00:00
platforms Fix DynamicAttributeDefinedStatically cop 2018-09-21 12:37:57 +05:00
providers
clusters.rb Associate clusters model to groups 2018-10-29 16:21:31 +13:00
kubernetes_namespaces.rb Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00
projects.rb Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00