gitlab-org--gitlab-foss/spec/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
platforms Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00
providers Create a GKE cluster with legacy_abac disabled when the `:rbac_clusters` feature flag is enabled 2018-09-14 16:26:51 +12:00
cluster_spec.rb Associate clusters model to groups 2018-10-29 16:21:31 +13:00
group_spec.rb Associate clusters model to groups 2018-10-29 16:21:31 +13:00
kubernetes_namespace_spec.rb Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00
project_spec.rb Add Clusters::KubernetesNamespace model 2018-10-22 09:54:00 -05:00