blob: 555f4d4e601ffa55ca2350a9695d630fdb00b9da [file] [log] [blame]
efiacorecbae132022-03-04 15:01:30 +00001{{/*
2# Copyright © 2022 Nordix Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15*/}}
16{{ if eq .Values.useStrimziKafka true }}
17apiVersion: kafka.strimzi.io/v1beta2
18kind: KafkaTopic
19metadata:
20 name: {{ .Values.kafkaRequestConsumer.topic }}
21 labels:
22 strimzi.io/cluster: {{ include "common.release" . }}-strimzi
23spec:
24 partitions: 10
25 replicas: 2
26 config:
27 retention.ms: 7200000
28 segment.bytes: 1073741824
29---
30apiVersion: kafka.strimzi.io/v1beta2
31kind: KafkaTopic
32metadata:
33 name: {{ .Values.kafkaRequestProducer.topic }}
34 labels:
35 strimzi.io/cluster: {{ include "common.release" . }}-strimzi
36spec:
37 partitions: 10
38 replicas: 2
39 config:
40 retention.ms: 7200000
41 segment.bytes: 1073741824
42---
43apiVersion: kafka.strimzi.io/v1beta2
44kind: KafkaTopic
45metadata:
46 name: {{ .Values.kafkaAuditRequest.topic }}
47 labels:
48 strimzi.io/cluster: {{ include "common.release" . }}-strimzi
49spec:
50 partitions: 10
51 replicas: 2
52 config:
53 retention.ms: 7200000
54 segment.bytes: 1073741824
55---
56apiVersion: kafka.strimzi.io/v1beta2
57kind: KafkaTopic
58metadata:
59 name: {{ .Values.kafkaAuditResponse.topic }}
60 labels:
61 strimzi.io/cluster: {{ include "common.release" . }}-strimzi
62spec:
63 partitions: 10
64 replicas: 2
65 config:
66 retention.ms: 7200000
67 segment.bytes: 1073741824
68{{ end }}