From fea3f31cbed957a00e71c54d5e30dd4e5ae742ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa=20=28paulfantom=29?= Date: Wed, 2 Nov 2022 09:59:25 +0100 Subject: [PATCH] charts/avalanche: allow setting additional labels --- charts/avalanche/Chart.yaml | 2 +- charts/avalanche/templates/_helpers.tpl | 1 + charts/avalanche/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/avalanche/Chart.yaml b/charts/avalanche/Chart.yaml index 90040f85..10342638 100644 --- a/charts/avalanche/Chart.yaml +++ b/charts/avalanche/Chart.yaml @@ -4,7 +4,7 @@ apiVersion: v2 name: avalanche description: A Helm chart run avalanche for benchmarking Prometheus and remote write storage backends. -version: 0.4.0 +version: 0.5.0 home: https://github.com/timescale/helm-charts diff --git a/charts/avalanche/templates/_helpers.tpl b/charts/avalanche/templates/_helpers.tpl index 24fdbbed..3663fd2d 100644 --- a/charts/avalanche/templates/_helpers.tpl +++ b/charts/avalanche/templates/_helpers.tpl @@ -60,4 +60,5 @@ heritage: {{ .Release.Service }} {{ include "avalanche.labels" . }} app.kubernetes.io/name: {{ include "avalanche.fullname" . | quote }} app.kubernetes.io/version: {{ .Chart.Version }} +{{ .Values.labels | toYaml | nindent 0 }} {{- end }} diff --git a/charts/avalanche/values.yaml b/charts/avalanche/values.yaml index db5e8688..85b90443 100644 --- a/charts/avalanche/values.yaml +++ b/charts/avalanche/values.yaml @@ -40,6 +40,9 @@ annotations: {} # Annotations to be added to the avalanche Pods podAnnotations: {} +# Labels to be added to the avalanche k8s resources +labels: {} + # Enable ServiceMonitor used by prometheus-operator to configure prometheus for metrics scraping. # Note that by enabling the service monitor, the cluster's Prometheus will start scraping the metrics # generated as load and intended for benchmarking.