From 577a4184c160e8a5378f808ec81c6e98e9542229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= Date: Mon, 11 Feb 2019 18:20:03 +0100 Subject: [PATCH] [stable/elasticsearch-exporter] ServiceMonitor: set namespace to monitor + Add OWNER and add myself to owners. (#11323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [stable/elasticsearch-exporter] ServiceMonitor: set namespace to monitor. Signed-off-by: Cédric de Saint Martin * [stable/elasticsearch-exporter] Add owner file, add myself to owners. Signed-off-by: Cédric de Saint Martin * .helmignore: use other common patterns from helm create Signed-off-by: Cédric de Saint Martin --- stable/elasticsearch-exporter/.helmignore | 24 +++++++++++++++++++ stable/elasticsearch-exporter/Chart.yaml | 2 +- stable/elasticsearch-exporter/OWNERS | 6 +++++ .../templates/servicemonitor.yaml | 3 +++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 stable/elasticsearch-exporter/.helmignore create mode 100644 stable/elasticsearch-exporter/OWNERS diff --git a/stable/elasticsearch-exporter/.helmignore b/stable/elasticsearch-exporter/.helmignore new file mode 100644 index 0000000000..9e7b0bbbcd --- /dev/null +++ b/stable/elasticsearch-exporter/.helmignore @@ -0,0 +1,24 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +# OWNERS file for Kubernetes +OWNERS +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/stable/elasticsearch-exporter/Chart.yaml b/stable/elasticsearch-exporter/Chart.yaml index 937bfb1ed5..0dfa8969d3 100644 --- a/stable/elasticsearch-exporter/Chart.yaml +++ b/stable/elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Elasticsearch stats exporter for Prometheus name: elasticsearch-exporter -version: 1.1.0 +version: 1.1.1 appVersion: 1.0.2 home: https://github.com/justwatchcom/elasticsearch_exporter sources: diff --git a/stable/elasticsearch-exporter/OWNERS b/stable/elasticsearch-exporter/OWNERS new file mode 100644 index 0000000000..7668bc3eac --- /dev/null +++ b/stable/elasticsearch-exporter/OWNERS @@ -0,0 +1,6 @@ +approvers: +- desaintmartin +- svenmueller +reviewers: +- desaintmartin +- svenmueller diff --git a/stable/elasticsearch-exporter/templates/servicemonitor.yaml b/stable/elasticsearch-exporter/templates/servicemonitor.yaml index 0553893399..43a36175f7 100644 --- a/stable/elasticsearch-exporter/templates/servicemonitor.yaml +++ b/stable/elasticsearch-exporter/templates/servicemonitor.yaml @@ -23,4 +23,7 @@ spec: matchLabels: app: {{ template "elasticsearch-exporter.name" . }} release: "{{ .Release.Name }}" + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} {{- end }}