Skip to content

Commit 6ae5cc7

Browse files
authored
Merge pull request #962 from snyk/feat/add_labels
Feat/add labels
2 parents adca290 + ec65d13 commit 6ae5cc7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
app.kubernetes.io/name: {{ include "snyk-monitor.name" . }}
2323
app.kubernetes.io/instance: {{ .Release.Name }}
2424
app.kubernetes.io/managed-by: {{ .Release.Service }}
25+
{{- with .Values.metadata.labels }}
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
2528
{{- with .Values.metadata.annotations }}
2629
annotations:
2730
{{- toYaml . | nindent 8 }}

snyk-monitor/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ nodeSelector: {}
101101
nodeAffinity:
102102
disableBetaArchNodeSelector: false
103103

104-
# Additional annotations for the snyk-monitor Deployment's Pod
104+
# Additional labels and annotations for the snyk-monitor Deployment's Pod
105105
metadata:
106+
labels: {}
106107
annotations: {}
107108

108109
psp:

0 commit comments

Comments
 (0)