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
path: root/lib
diff options
context:
space:
mode:
authorJoshua Lambert <joshua@gitlab.com>2018-02-05 15:46:31 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-02-05 15:46:31 +0300
commit1f912880dbf6337718611edbd9c2fb52c5639476 (patch)
tree02febc0a528c6307d7d250bb3e67856eacc5dbda /lib
parent1e66ff6d8003abeab261c90fc94d8fcb4d93083d (diff)
Enable Prometheus metrics for deployed Ingresses
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/kubernetes/helm/pod.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/kubernetes/helm/pod.rb b/lib/gitlab/kubernetes/helm/pod.rb
index a3216759cae..ca5e06009fa 100644
--- a/lib/gitlab/kubernetes/helm/pod.rb
+++ b/lib/gitlab/kubernetes/helm/pod.rb
@@ -64,7 +64,7 @@ module Gitlab
{
name: 'configuration-volume',
configMap: {
- name: 'values-content-configuration',
+ name: "values-content-configuration-#{command.name}",
items: [{ key: 'values', path: 'values.yaml' }]
}
}
@@ -81,7 +81,11 @@ module Gitlab
def create_config_map
resource = ::Kubeclient::Resource.new
- resource.metadata = { name: 'values-content-configuration', namespace: namespace_name, labels: { name: 'values-content-configuration' } }
+ resource.metadata = {
+ name: "values-content-configuration-#{command.name}",
+ namespace: namespace_name,
+ labels: { name: "values-content-configuration-#{command.name}" }
+ }
resource.data = { values: File.read(command.chart_values_file) }
kubeclient.create_config_map(resource)
end