Skip to content

Commit d750403

Browse files
feat: ability to add deployment labels and annotations (#355)
* feat: ability to add deployment labels and annotations * Update deploy/helm-chart/kubernetes-replicator/Chart.yaml --------- Co-authored-by: Martin Helmich <kontakt@martin-helmich.de>
1 parent 95ee483 commit d750403

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

deploy/helm-chart/kubernetes-replicator/templates/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ metadata:
44
name: {{ include "kubernetes-replicator.fullname" . }}
55
labels:
66
{{- include "kubernetes-replicator.labels" . | nindent 4 }}
7+
{{- if .Values.labels }}
8+
{{- toYaml .Values.labels | nindent 4 }}
9+
{{- end }}
10+
{{- with .Values.annotations }}
11+
annotations:
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
714
spec:
815
replicas: 1
916
{{- with .Values.updateStrategy }}

deploy/helm-chart/kubernetes-replicator/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,18 @@ tolerations: []
5959

6060
affinity: {}
6161

62-
podLabels: {}
62+
# Deployment annotations
63+
annotations: {}
64+
65+
# Deployment labels
66+
labels: {}
6367

68+
# Pod annotations
6469
podAnnotations: {}
6570

71+
# Pod labels
72+
podLabels: {}
73+
6674
livenessProbe:
6775
initialDelaySeconds: 60
6876
periodSeconds: 10

0 commit comments

Comments
 (0)