From 974da752852dc270415b74a4626acf4945e541cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fouray?= Date: Tue, 25 Jan 2022 10:28:13 +0000 Subject: [PATCH] [grafana] Add app.kubernetes.io/component label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc Fouray --- charts/grafana/Chart.yaml | 2 +- charts/grafana/templates/_helpers.tpl | 2 ++ charts/grafana/templates/hpa.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/grafana/Chart.yaml b/charts/grafana/Chart.yaml index 1138cc2fac..87a351f39e 100644 --- a/charts/grafana/Chart.yaml +++ b/charts/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: grafana -version: 6.21.0 +version: 6.21.1 appVersion: 8.3.4 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. diff --git a/charts/grafana/templates/_helpers.tpl b/charts/grafana/templates/_helpers.tpl index f0c06aadbd..b75a33269a 100644 --- a/charts/grafana/templates/_helpers.tpl +++ b/charts/grafana/templates/_helpers.tpl @@ -82,6 +82,7 @@ Selector labels {{- define "grafana.selectorLabels" -}} app.kubernetes.io/name: {{ include "grafana.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/component: grafana {{- end -}} {{/* @@ -102,6 +103,7 @@ Selector labels ImageRenderer {{- define "grafana.imageRenderer.selectorLabels" -}} app.kubernetes.io/name: {{ include "grafana.name" . }}-image-renderer app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/component: grafana {{- end -}} {{/* diff --git a/charts/grafana/templates/hpa.yaml b/charts/grafana/templates/hpa.yaml index 9c186d74ac..5d17134854 100644 --- a/charts/grafana/templates/hpa.yaml +++ b/charts/grafana/templates/hpa.yaml @@ -6,6 +6,7 @@ metadata: labels: app.kubernetes.io/name: {{ template "grafana.name" . }} helm.sh/chart: {{ template "grafana.chart" . }} + app.kubernetes.io/component: grafana app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} spec: