Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Fixed pod annotations support in helm chart #91

Merged
merged 1 commit into from
Nov 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions charts/kafka-lag-exporter/templates/040-Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "kafka-lag-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Value.podAnnotations | indent 8 }}
{{- end }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "kafka-lag-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if or .Values.watchers.strimzi .Values.serviceAccount.create }}
serviceAccountName: {{ include "kafka-lag-exporter.fullname" . }}-serviceaccount
Expand Down
2 changes: 2 additions & 0 deletions charts/kafka-lag-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
podAnnotations: {}
# foo: bar

prometheus:
serviceMonitor:
Expand Down