Skip to content

Commit 74df109

Browse files
committed
feat: allow deployment labels to be configured
1 parent 747e70f commit 74df109

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ metadata:
77
helm.sh/chart: {{ include "snyk-monitor.chart" . }}
88
app.kubernetes.io/instance: {{ .Release.Name }}
99
app.kubernetes.io/managed-by: {{ .Release.Service }}
10+
{{- with .Values.deployment.labels }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
1013
spec:
1114
{{- if .Values.pvc.enabled }}
1215
strategy:

snyk-monitor/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ nodeAffinity:
115115
kubernetesIoOs:
116116
- linux
117117

118+
# Additional labels for the snyk-monitor Deployment
119+
deployment:
120+
labels: {}
121+
118122
# Additional labels and annotations for the snyk-monitor Deployment's Pod
119123
metadata:
120124
labels: {}

0 commit comments

Comments
 (0)