Skip to content

Commit

Permalink
feat(kafka): allow pod template customizations (#907)
Browse files Browse the repository at this point in the history
* allow pod template customization

* cleanup: drop unnecessary `with`

* standardize value structure

* bump to v0.2.2
  • Loading branch information
Cbeck527 authored Mar 29, 2024
1 parent c127a19 commit 4f4a4cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kafka/helm/kafka/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kafka
description: A Helm chart for Kubernetes
type: application
version: 0.2.1
version: 0.2.2
appVersion: "3.4.0"
dependencies:
- name: strimzi-kafka-operator
Expand Down
10 changes: 9 additions & 1 deletion kafka/helm/kafka/templates/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ spec:
replicas: {{ .Values.kafka.replicas }}
version: {{ .Values.kafka.version }}
template:
{{- if .Values.kafkaPodTemplate }}
pod:
{{- toYaml .Values.kafkaPodTemplate | nindent 8 }}
{{- end }}
bootstrapService:
metadata:
labels:
Expand Down Expand Up @@ -76,6 +80,10 @@ spec:
zookeeper:
{{ toYaml .Values.zookeeper | nindent 4 }}
template:
{{- if .Values.zookeeperPodTemplate }}
pod:
{{- toYaml .Values.zookeeperPodTemplate | nindent 8 }}
{{- end }}
clientService:
metadata:
labels:
Expand All @@ -90,4 +98,4 @@ spec:
kafkaExporter:
topicRegex: ".*"
groupRegex: ".*"
{{ end }}
{{ end }}

0 comments on commit 4f4a4cc

Please sign in to comment.