Skip to content

Commit 0c0ab6d

Browse files
authored
Add podAnnotations for proportional-autoscaler (#124)
Signed-off-by: jukie <[email protected]>
1 parent 4d292a2 commit 0c0ab6d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

charts/coredns/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: coredns
3-
version: 1.24.0
3+
version: 1.24.1
44
appVersion: 1.10.1
55
home: https://coredns.io
66
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
@@ -20,4 +20,4 @@ type: application
2020
annotations:
2121
artifacthub.io/changes: |
2222
- kind: added
23-
description: Added podSecurityContext
23+
description: Added autoscaler podAnnotations

charts/coredns/templates/deployment-autoscaler.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ spec:
5050
{{- if .Values.isClusterService }}
5151
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
5252
{{- end }}
53+
{{- with .Values.autoscaler.podAnnotations }}
54+
{{- toYaml . | nindent 8 }}
55+
{{- end }}
5356
spec:
5457
serviceAccountName: {{ template "coredns.fullname" . }}-autoscaler
5558
{{- $priorityClassName := default .Values.priorityClassName .Values.autoscaler.priorityClassName }}

charts/coredns/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ autoscaler:
296296
# If true does not allow single points of failure to form
297297
preventSinglePointFailure: true
298298

299+
# Annotations for the coredns proportional autoscaler pods
300+
podAnnotations: {}
301+
299302
## Optionally specify some extra flags to pass to cluster-proprtional-autoscaler.
300303
## Useful for e.g. the nodelabels flag.
301304
# customFlags:

0 commit comments

Comments
 (0)