Skip to content

Commit 483c9c1

Browse files
authored
Merge pull request #1741 from anthosz/deploy-annotation
helm chart - Allow to add custom annotations for deployment
2 parents f7f86ed + d841a2d commit 483c9c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/descheduler/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
namespace: {{ include "descheduler.namespace" . }}
77
labels:
88
{{- include "descheduler.labels" . | nindent 4 }}
9+
{{- if .Values.annotations }}
10+
annotations: {{- toYaml .Values.deploymentAnnotations | nindent 4 }}
11+
{{- end }}
912
spec:
1013
{{- if gt (.Values.replicas | int) 1 }}
1114
{{- if not .Values.leaderElection.enabled }}

charts/descheduler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ serviceAccount:
204204
# Default is not set - but only implied by the ServiceAccount
205205
# automountServiceAccountToken: true
206206

207+
# Annotations that'll be applied to deployment
208+
deploymentAnnotations: {}
209+
207210
cronJobAnnotations: {}
208211

209212
cronJobLabels: {}

0 commit comments

Comments
 (0)