From c65d67b1541c32fb36ad4ee61fe9e8b5745387dd Mon Sep 17 00:00:00 2001 From: Matan Heled Date: Mon, 12 Feb 2024 08:51:05 +0200 Subject: [PATCH 1/2] Added support for custom extra labels --- charts/port-k8s-exporter/templates/_helpers.tpl | 3 +++ charts/port-k8s-exporter/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/charts/port-k8s-exporter/templates/_helpers.tpl b/charts/port-k8s-exporter/templates/_helpers.tpl index 0f3f5ca..ca172c1 100644 --- a/charts/port-k8s-exporter/templates/_helpers.tpl +++ b/charts/port-k8s-exporter/templates/_helpers.tpl @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "port-k8s-exporter.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- range $key, $value := .Values.extraLabels }} +{{$key}}: {{ $value }} +{{- end }} {{- end }} {{/* diff --git a/charts/port-k8s-exporter/values.yaml b/charts/port-k8s-exporter/values.yaml index 65f1f49..ec9b79d 100644 --- a/charts/port-k8s-exporter/values.yaml +++ b/charts/port-k8s-exporter/values.yaml @@ -9,6 +9,9 @@ verbosity: 0 createDefaultResources: true overwriteConfigurationOnRestart: false +extraLabels: {} +# port: true + image: repository: ghcr.io/port-labs/port-k8s-exporter pullPolicy: IfNotPresent From 458a5fa0631c9a52cb0ca72d227355991d34cdc6 Mon Sep 17 00:00:00 2001 From: Matan Heled Date: Mon, 12 Feb 2024 08:53:58 +0200 Subject: [PATCH 2/2] change k8s exporter chart version to 0.2.16 --- charts/port-k8s-exporter/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/port-k8s-exporter/Chart.yaml b/charts/port-k8s-exporter/Chart.yaml index afdb7e3..1bab586 100644 --- a/charts/port-k8s-exporter/Chart.yaml +++ b/charts/port-k8s-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: port-k8s-exporter description: A Helm chart for Port Kubernetes Exporter type: application -version: 0.2.15 +version: 0.2.16 appVersion: "0.2.12" home: https://getport.io/ sources: