Skip to content

Commit 4f4a4cc

Browse files
authored
feat(kafka): allow pod template customizations (#907)
* allow pod template customization * cleanup: drop unnecessary `with` * standardize value structure * bump to v0.2.2
1 parent c127a19 commit 4f4a4cc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

kafka/helm/kafka/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: kafka
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 0.2.1
5+
version: 0.2.2
66
appVersion: "3.4.0"
77
dependencies:
88
- name: strimzi-kafka-operator

kafka/helm/kafka/templates/kafka.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ spec:
88
replicas: {{ .Values.kafka.replicas }}
99
version: {{ .Values.kafka.version }}
1010
template:
11+
{{- if .Values.kafkaPodTemplate }}
12+
pod:
13+
{{- toYaml .Values.kafkaPodTemplate | nindent 8 }}
14+
{{- end }}
1115
bootstrapService:
1216
metadata:
1317
labels:
@@ -76,6 +80,10 @@ spec:
7680
zookeeper:
7781
{{ toYaml .Values.zookeeper | nindent 4 }}
7882
template:
83+
{{- if .Values.zookeeperPodTemplate }}
84+
pod:
85+
{{- toYaml .Values.zookeeperPodTemplate | nindent 8 }}
86+
{{- end }}
7987
clientService:
8088
metadata:
8189
labels:
@@ -90,4 +98,4 @@ spec:
9098
kafkaExporter:
9199
topicRegex: ".*"
92100
groupRegex: ".*"
93-
{{ end }}
101+
{{ end }}

0 commit comments

Comments
 (0)