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
AgeCommit message (Collapse)Author
2019-08-07Use separate Kubernetes namespaces per environmentTiger Watson
Kubernetes deployments on new clusters will now have a separate namespace per project environment, instead of sharing a single namespace for the project. Behaviour of existing clusters is unchanged. All new functionality is controlled by the :kubernetes_namespace_per_environment feature flag, which is safe to enable/disable at any time.
2019-07-11Refactor: model errors for multi cluster validationDylan Griffith
The current approach requires catching exceptions to handle these errors and callers are already handling model validations so it seems more appropriate. Also it seemed to convoluted to add this logic directly to the model since the model needs to check too many possible associations to determine whether or not there are more than one cluster since the model doesn't know what it's being created on. Additionally we only wanted to validate during create to avoid the risk of existing models becoming invalid by many different edge cases.
2019-05-06Instance level kubernetes clusters adminJames Fargher
Instance level clusters were already mostly supported, this change adds admin area controllers for cluster CRUD
2018-11-08Raise on unknown clusterableThong Kuah
2018-11-08Extend clusters_controller for group type clustersThong Kuah
- Add pages javascripts to intialize clusters for group pages - Move specs asserting gcp specific validations from controller into UpdateService spec - Also teach Clusters::ApplicationController about groups
2018-11-01Abstract out project out of ClustersControllerThong Kuah
To the extent possible swap out `project` with `clusterable` - Abstract paths for showing cluster or clusters. This will allow us to swap in alternative paths for group level cluster - Push :project_id and :namespace_id params from the URL to the POST body. - Create a nice helper for to generate links for the destroy action For some reason, spec :project_id and :namespace_id param are not going through `to_param` for a JSON format. Manually call `to_param` to fix specs. - Move :layout to BaseController
2018-10-29Associate clusters model to groupsThong Kuah
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-15Pass in project as kwarg for CreateServiceThong Kuah
This enables us to have other options in the future such as passing in `group:`. Also, remove project arg from UpdateService, as un-used. This will help group cluster controller to re-use this services.
2018-07-16Enable frozen string in apps/services/**/*.rbgfyoung
For directories application_settings --> labels. Partially addresses #47424.
2018-02-06Replace "cluster" with "Kubernetes cluster"Winnie Hellmann
2017-12-05Replace Exception with ArgumentErrorMatija Čupić
2017-12-05Remove redundant return in Clusters::CreateServiceMatija Čupić
2017-12-05Merge branch '35616-move-k8-to-cluster-page' into ↵Kamil Trzcinski
cluster-page-with-list-clusters
2017-12-04Optimize Clusters::CreateService#executeShinya Maeda
2017-12-03Raise error when trying to create second clusterMatija Čupić
2017-11-24Simplify Clusters::CreateService cluster checkMatija Čupić
2017-11-18Limit projects to just one clusterMatija Čupić
2017-11-02Fix out of sync with KubernetesService. Remove namespace pramas from ↵Shinya Maeda
controller. Use time_with_zone in schema. Remove Gcp::Clusters from safe_model_attributes.ym
2017-11-01Slim down Platforms::Kubernetes, and instead make it instrument ↵Kamil Trzcinski
KubernetesService
2017-11-01Fix spec. Fix usage ping. Fix warnings by adding new models and attributes.Shinya Maeda
2017-10-31specs for featureShinya Maeda
2017-10-31specs for controller. Improved validationShinya Maeda
2017-10-23This worksShinya Maeda
2017-10-23Refactor Clusters to be consisted from GcpProvider and KubernetesPlatformKamil Trzcinski