diff --git a/helm/templates/kafka/kafka-cluster.yaml b/helm/templates/kafka/kafka-cluster.yaml
index 6911327cf7cd1c4a279fa0cc36a73710423b6c99..4fc4177901a882cd8bd135941c329b8096c9af68 100644
--- a/helm/templates/kafka/kafka-cluster.yaml
+++ b/helm/templates/kafka/kafka-cluster.yaml
@@ -55,9 +55,9 @@ spec:
   {{- if .Values.strimzi.kafkaExporter.enabled }}
   kafkaExporter:
     {{- with .Values.strimzi.kafkaExporter.template}}
-      template:
-        {{- toYaml . | nindent 6 }}
-      {{- end}}
+    template:
+      {{- toYaml . | nindent 6 }}
+    {{- end}}
     {{- with .Values.strimzi.kafkaExporter.resources}}
     resources:
       {{- toYaml . | nindent 6 }}