Allow empty additonalLabels (#123)

* Allow empty additonalLabels

* Version bump
This commit is contained in:
Nicholas Dille 2022-11-29 07:54:28 +01:00 committed by GitHub
parent 4949dd84ff
commit f87e0cb7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
description: Scans SBOMs for vulnerabilities description: Scans SBOMs for vulnerabilities
name: vulnerability-operator name: vulnerability-operator
version: 0.13.0 version: 0.13.1
appVersion: 0.13.0 appVersion: 0.13.0
home: https://github.com/ckotzbauer/vulnerability-operator home: https://github.com/ckotzbauer/vulnerability-operator
sources: sources:

View File

@ -5,7 +5,9 @@ metadata:
name: {{ template "app.name" . }} name: {{ template "app.name" . }}
labels: labels:
{{- include "app.labels" . | nindent 4 }} {{- include "app.labels" . | nindent 4 }}
{{- if .Values.servicemonitor.additionalLabels }}
{{- toYaml .Values.servicemonitor.additionalLabels | nindent 4 }} {{- toYaml .Values.servicemonitor.additionalLabels | nindent 4 }}
{{- end -}}
spec: spec:
selector: selector:
matchLabels: matchLabels: