summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-02-05 12:48:17 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-02-05 12:48:17 +0000
commitbedfc7b103c25cd6b9aada350142549160e41a5e (patch)
tree04667b18ca58bdfb18ce28672c3a93a49c53d70e /lib
parent518c9628a3c15920f7e92df3099f3827bee3aa5c (diff)
parent1f912880dbf6337718611edbd9c2fb52c5639476 (diff)
downloadgitlab-ce-bedfc7b103c25cd6b9aada350142549160e41a5e.tar.gz
Merge branch '39985-enable-prometheus-metrics-for-deployed-ingresses' into 'master'
Enable Prometheus metrics for deployed Ingresses Closes #39985 See merge request gitlab-org/gitlab-ce!16866
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