Skip to content

Commit

Permalink
Provide capability to specify annotations in Helm chart (kedacore#27)
Browse files Browse the repository at this point in the history
* Provide capability to specify annotations in Helm chart

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use podAnnotations for metricsAdapter / keda

Signed-off-by: kiran <kiran.sundaravarathan@paytm.com>
  • Loading branch information
tomkerkhove authored and kiran committed Mar 31, 2020
1 parent b658bfb commit e002bbf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keda/templates/12-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{ tpl .Values.additionalLabels . | indent 4}}
{{- if .Values.podAnnotations.keda }}
annotations:
{{ tpl .Values.podAnnotations.keda . | indent 4}}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/22-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/part-of: {{ .Values.operatorName }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.podAnnotations.metricsAdapter }}
annotations:
{{ tpl .Values.podAnnotations.metricsAdapter . | indent 4}}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
3 changes: 3 additions & 0 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ imagePullSecrets: []
operatorName: keda-operator

additionalLabels: ""
podAnnotations:
keda: {}
metricsAdapter: {}

customResourceDefinition:
create: true
Expand Down

0 comments on commit e002bbf

Please sign in to comment.