aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2023-03-06 09:21:57 +0000
committerefiacor <fiachra.corcoran@est.tech>2023-03-09 13:07:09 +0000
commit5c0678f7cc26241252692d84b4a31862c1204237 (patch)
tree8d6cfe3fb27540e32ebd61716a88fed02737424f /kubernetes/common
parent017de9ea164c8e20b4242110c345453a175689f4 (diff)
[DCAE-HV-VES] Move to use strimzi kafka tpl
Move hv-ves to use strimzi kakfa tpl Topic naming is invalid so adding overrides to tpl Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Ied93c6329f51c3219b09b4f67f174c9e15727188 Issue-ID: DMAAP-1854
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: