From 74160c292a64bb84869a0e5fdff0d4d171d2f7ff Mon Sep 17 00:00:00 2001 From: fabio trigari Date: Tue, 29 Oct 2024 01:04:21 +0100 Subject: [PATCH] [tempo-vulture] Add commonLabels (#3319) Signed-off-by: fabio trigari --- charts/tempo-vulture/Chart.yaml | 2 +- charts/tempo-vulture/README.md | 1 + charts/tempo-vulture/templates/_helpers.tpl | 3 +++ charts/tempo-vulture/values.yaml | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/tempo-vulture/Chart.yaml b/charts/tempo-vulture/Chart.yaml index 59fb60cd0e..44393355ca 100644 --- a/charts/tempo-vulture/Chart.yaml +++ b/charts/tempo-vulture/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tempo-vulture description: Grafana Tempo Vulture - A tool to monitor Tempo performance. type: application -version: 0.5.0 +version: 0.5.1 appVersion: 2.5.0 engine: gotpl home: https://grafana.com/docs/tempo/latest/ diff --git a/charts/tempo-vulture/README.md b/charts/tempo-vulture/README.md index 86b510d5fa..5378a14ab8 100644 --- a/charts/tempo-vulture/README.md +++ b/charts/tempo-vulture/README.md @@ -54,6 +54,7 @@ tempoAddress: | extraEnv | list | `[]` | Environment variables to add to the vulture pods | | extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the vulture pods | | fullnameOverride | string | `""` | Overrides the chart's computed fullname | +| global.commonLabels | object | `{}` | Common labels for all object directly managed by this chart. scope: * | | hostAliases | list | `[]` | hostAliases to add | | image.pullPolicy | string | `"IfNotPresent"` | Docker image pull policy | | image.repository | string | `"docker.io/grafana/tempo-vulture"` | Docker image repository | diff --git a/charts/tempo-vulture/templates/_helpers.tpl b/charts/tempo-vulture/templates/_helpers.tpl index d19656be82..f183cfe9fd 100644 --- a/charts/tempo-vulture/templates/_helpers.tpl +++ b/charts/tempo-vulture/templates/_helpers.tpl @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "tempo-vulture.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- with .Values.global.commonLabels }} +{{ toYaml . }} +{{- end }} {{- end }} {{/* diff --git a/charts/tempo-vulture/values.yaml b/charts/tempo-vulture/values.yaml index f056143a49..def34f9d1c 100644 --- a/charts/tempo-vulture/values.yaml +++ b/charts/tempo-vulture/values.yaml @@ -1,3 +1,8 @@ +global: + # -- Common labels for all object directly managed by this chart. + # scope: * + commonLabels: {} + # -- Overrides the chart's name nameOverride: "" # -- Overrides the chart's computed fullname