From 4f4a4cccfd760ee7c0b6cccfffa0b8672cb94163 Mon Sep 17 00:00:00 2001 From: Chris Becker Date: Fri, 29 Mar 2024 15:38:11 -0400 Subject: [PATCH] feat(kafka): allow pod template customizations (#907) * allow pod template customization * cleanup: drop unnecessary `with` * standardize value structure * bump to v0.2.2 --- kafka/helm/kafka/Chart.yaml | 2 +- kafka/helm/kafka/templates/kafka.yaml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/kafka/helm/kafka/Chart.yaml b/kafka/helm/kafka/Chart.yaml index 630d49b84..c4ee7a19b 100644 --- a/kafka/helm/kafka/Chart.yaml +++ b/kafka/helm/kafka/Chart.yaml @@ -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 diff --git a/kafka/helm/kafka/templates/kafka.yaml b/kafka/helm/kafka/templates/kafka.yaml index aa7b81751..d568d5920 100644 --- a/kafka/helm/kafka/templates/kafka.yaml +++ b/kafka/helm/kafka/templates/kafka.yaml @@ -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: @@ -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: @@ -90,4 +98,4 @@ spec: kafkaExporter: topicRegex: ".*" groupRegex: ".*" -{{ end }} \ No newline at end of file +{{ end }}