efiacor | ecbae13 | 2022-03-04 15:01:30 +0000 | [diff] [blame^] | 1 | {{/* |
| 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 }} |
| 17 | apiVersion: kafka.strimzi.io/v1beta2 |
| 18 | kind: KafkaTopic |
| 19 | metadata: |
| 20 | name: {{ .Values.kafkaRequestConsumer.topic }} |
| 21 | labels: |
| 22 | strimzi.io/cluster: {{ include "common.release" . }}-strimzi |
| 23 | spec: |
| 24 | partitions: 10 |
| 25 | replicas: 2 |
| 26 | config: |
| 27 | retention.ms: 7200000 |
| 28 | segment.bytes: 1073741824 |
| 29 | --- |
| 30 | apiVersion: kafka.strimzi.io/v1beta2 |
| 31 | kind: KafkaTopic |
| 32 | metadata: |
| 33 | name: {{ .Values.kafkaRequestProducer.topic }} |
| 34 | labels: |
| 35 | strimzi.io/cluster: {{ include "common.release" . }}-strimzi |
| 36 | spec: |
| 37 | partitions: 10 |
| 38 | replicas: 2 |
| 39 | config: |
| 40 | retention.ms: 7200000 |
| 41 | segment.bytes: 1073741824 |
| 42 | --- |
| 43 | apiVersion: kafka.strimzi.io/v1beta2 |
| 44 | kind: KafkaTopic |
| 45 | metadata: |
| 46 | name: {{ .Values.kafkaAuditRequest.topic }} |
| 47 | labels: |
| 48 | strimzi.io/cluster: {{ include "common.release" . }}-strimzi |
| 49 | spec: |
| 50 | partitions: 10 |
| 51 | replicas: 2 |
| 52 | config: |
| 53 | retention.ms: 7200000 |
| 54 | segment.bytes: 1073741824 |
| 55 | --- |
| 56 | apiVersion: kafka.strimzi.io/v1beta2 |
| 57 | kind: KafkaTopic |
| 58 | metadata: |
| 59 | name: {{ .Values.kafkaAuditResponse.topic }} |
| 60 | labels: |
| 61 | strimzi.io/cluster: {{ include "common.release" . }}-strimzi |
| 62 | spec: |
| 63 | partitions: 10 |
| 64 | replicas: 2 |
| 65 | config: |
| 66 | retention.ms: 7200000 |
| 67 | segment.bytes: 1073741824 |
| 68 | {{ end }} |