summaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/common/templates/_strimzikafka.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/common/common/templates/_strimzikafka.tpl b/kubernetes/common/common/templates/_strimzikafka.tpl
index f8f562e223..a2e9c90a4f 100644
--- a/kubernetes/common/common/templates/_strimzikafka.tpl
+++ b/kubernetes/common/common/templates/_strimzikafka.tpl
@@ -112,7 +112,11 @@ spec:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
+ {{- if (hasKey $topic "strimziTopicName") }}
+ name: {{ ($topic.strimziTopicName) }}-kt
+ {{- else }}
name: {{ ($topic.name) | lower }}-kt
+ {{- end }}
labels:
strimzi.io/cluster: {{ include "common.release" $ }}-strimzi
spec: