gitlab-org--gitlab-foss/app/models/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 Update Runner Chart to 0.1.35 2018-10-23 14:02:55 +00:00
concerns Show available clusters when installed or updated 2018-10-16 09:16:43 +02:00
platforms Store version within SUPPORTED_API_GROUPS hash 2018-10-23 23:52:34 +13:00
providers Enable frozen string for app/models/**/*.rb 2018-08-03 01:44:16 -07:00
cluster.rb Associate clusters model to groups 2018-10-29 16:21:31 +13:00
group.rb Associate clusters model to groups 2018-10-29 16:21:31 +13:00
kubernetes_namespace.rb Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00
project.rb Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00