From ac018873bdf9a7988dac210c081431497014c174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= Date: Thu, 8 Nov 2018 15:37:29 +0100 Subject: [PATCH] [stable/postgresql] Fix upgradability of metrics deployment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/helm/charts/issues/7726. Signed-off-by: Cédric de Saint Martin --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/metrics-deployment.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 7d3b317effda..5268740269d3 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.3.2 +version: 2.3.3 appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/templates/metrics-deployment.yaml b/stable/postgresql/templates/metrics-deployment.yaml index 7bbe0da45e2c..fb6e0d9d96b4 100644 --- a/stable/postgresql/templates/metrics-deployment.yaml +++ b/stable/postgresql/templates/metrics-deployment.yaml @@ -9,6 +9,11 @@ metadata: release: {{ .Release.Name | quote}} heritage: {{ .Release.Service | quote }} spec: + selector: + matchLabels: + release: {{ .Release.Name | quote }} + app: {{ template "postgresql.name" . }} + role: metrics template: metadata: labels: