Skip to content

Commit

Permalink
feat: ability to add deployment labels and annotations (#355)
Browse files Browse the repository at this point in the history
* feat: ability to add deployment labels and annotations

* Update deploy/helm-chart/kubernetes-replicator/Chart.yaml

---------

Co-authored-by: Martin Helmich <[email protected]>
  • Loading branch information
dadangnh and martin-helmich authored Nov 5, 2024
1 parent 95ee483 commit d750403
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "kubernetes-replicator.fullname" . }}
labels:
{{- include "kubernetes-replicator.labels" . | nindent 4 }}
{{- if .Values.labels }}
{{- toYaml .Values.labels | nindent 4 }}
{{- end }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
{{- with .Values.updateStrategy }}
Expand Down
10 changes: 9 additions & 1 deletion deploy/helm-chart/kubernetes-replicator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,18 @@ tolerations: []

affinity: {}

podLabels: {}
# Deployment annotations
annotations: {}

# Deployment labels
labels: {}

# Pod annotations
podAnnotations: {}

# Pod labels
podLabels: {}

livenessProbe:
initialDelaySeconds: 60
periodSeconds: 10
Expand Down

0 comments on commit d750403

Please sign in to comment.