From f87e0cb7e0b9fab136fe42705bf1ff09f8e15f06 Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Tue, 29 Nov 2022 07:54:28 +0100 Subject: [PATCH] Allow empty additonalLabels (#123) * Allow empty additonalLabels * Version bump --- charts/vulnerability-operator/Chart.yaml | 2 +- charts/vulnerability-operator/templates/servicemonitor.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/vulnerability-operator/Chart.yaml b/charts/vulnerability-operator/Chart.yaml index 7d85280..b1d4e8e 100644 --- a/charts/vulnerability-operator/Chart.yaml +++ b/charts/vulnerability-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Scans SBOMs for vulnerabilities name: vulnerability-operator -version: 0.13.0 +version: 0.13.1 appVersion: 0.13.0 home: https://github.com/ckotzbauer/vulnerability-operator sources: diff --git a/charts/vulnerability-operator/templates/servicemonitor.yaml b/charts/vulnerability-operator/templates/servicemonitor.yaml index 2407677..96bbc90 100644 --- a/charts/vulnerability-operator/templates/servicemonitor.yaml +++ b/charts/vulnerability-operator/templates/servicemonitor.yaml @@ -5,7 +5,9 @@ metadata: name: {{ template "app.name" . }} labels: {{- include "app.labels" . | nindent 4 }} + {{- if .Values.servicemonitor.additionalLabels }} {{- toYaml .Values.servicemonitor.additionalLabels | nindent 4 }} + {{- end -}} spec: selector: matchLabels: