Commit Graph

25 Commits

Author SHA1 Message Date
GitLab Bot bc3e57199e Add latest changes from gitlab-org/gitlab@master 2019-12-21 03:07:37 +00:00
Tiger Watson 36a01a88ce Use separate Kubernetes namespaces per environment
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-08-07 04:40:29 +00:00
Thong Kuah f0391c2517 Add frozen_string_literal to spec/support
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-25 17:33:34 +12:00
James Fargher 6b9157d5dc Make KubernetesService readonly
We are deprecating this service in favor of instance wide clusters.
Therefore we removed some code that is not anymore needed for a
readonly cluster and also we added some flags to allow for this
deprecation. These flags are to be removed in the next release when
we finally completelly remove KubernetesService.
2019-06-18 00:01:56 +00:00
Tiger 101c4480b3 Remove legacy Kubernetes #actual_namespace
When Kubernetes clusters were originally built they could only
exist at the project level, and so there was logic included
that assumed there would only ever be a single Kubernetes
namespace per cluster. We now support clusters at the group
and instance level, which allows multiple namespaces.

This change consolidates various project-specific fallbacks to
generate namespaces, and hands all responsibility to the
Clusters::KubernetesNamespace model. There is now no concept of
a single namespace for a Clusters::Platforms::Kubernetes; to
retrieve a namespace a project must now be supplied in all cases.

This simplifies upcoming work to use a separate Kubernetes
namespace per project environment (instead of a namespace
per project).
2019-05-21 11:38:11 -05:00
Tiago Botelho eb7c08c7a6 Backports relevant changes made in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5163 to CE 2018-07-25 09:39:39 +01:00
Paweł Chojnacki 0e97eca1d8 Backport custom metrics ce components 2018-02-23 17:58:40 +00:00
Shinya Maeda c36d7842da Aling shared_exmaples to "same behavior between KubernetesService and Platform::Kubernetes" 2017-11-28 20:47:59 +09:00
Shinya Maeda 53da3d976f Replce kubernetes_service and deployment_service to deployment_platform 2017-11-28 20:47:59 +09:00
Shinya Maeda 45f2d0af41 Add test suit for platform::kubernetes 2017-11-28 20:47:59 +09:00
Pawel Chojnacki b243c3ea78 Give metric query context rspec examples correctly sounding names. + missing whitespace 2017-08-01 20:28:25 +02:00
Pawel Chojnacki 6232543db3 Add changelog: add support for kube_namespace in Metrics queries
+ small whitespace fix to better separate tests
2017-07-31 16:32:26 +02:00
Pawel Chojnacki 48778ac589 Tests for query context variables 2017-07-31 16:32:26 +02:00
Pawel Chojnacki 6df5bd8b84 Context handling and tests cleanup + simple test kube_namespace context test 2017-07-31 16:32:26 +02:00
Pawel Chojnacki b97d5b65dd Use include ActiveModel::Model to hold metrics data parsed from yaml. 2017-06-16 14:34:23 +02:00
Pawel Chojnacki 0e7e7c2f2b Test Additional metrics parser and fix query checking tests 2017-06-09 22:47:01 +02:00
Pawel Chojnacki 969b812433 Add schema matcher for non response objects + use schema to test additional metrics compliance 2017-06-06 19:35:28 +02:00
Pawel Chojnacki ccf89acc71 expand Namespaces:: and refactoring yaml parsing out of MetricGroup class 2017-06-06 16:15:11 +02:00
Pawel Chojnacki 1b6ab2dffc Remove orig file + rubocop cleanup 2017-06-05 21:00:57 +02:00
Pawel Chojnacki ffedc52eaa Cleanup Additional Metrics tests 2017-06-05 20:11:22 +02:00
Pawel Chojnacki a3eb8264f3 Refactor Metric tests to use more common code 2017-06-05 19:43:30 +02:00
Pawel Chojnacki eccc187a70 Additional Metrics of deployment tests 2017-06-05 19:26:46 +02:00
Pawel Chojnacki eaaad702de Additional metrics test using multiple groups 2017-06-05 13:33:11 +02:00
Pawel Chojnacki ae5268ce8c Additional Metrics tests 2017-06-05 11:37:07 +02:00
Pawel Chojnacki 6a70509a27 Towards Reviewable prometheus 2017-06-05 11:37:07 +02:00