blob: 6cd7f93c5ad4717d08aee4c49c7cfc022aac9820 [file] [log] [blame]
efiacor3422fe92022-07-12 13:19:53 +01001{{/*
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
17{{- if .Values.global.kafka.useKafka }}
18apiVersion: kafka.strimzi.io/v1beta2
19kind: KafkaUser
20metadata:
21 name: {{ include "common.release" . }}-{{ .Values.global.kafka.sdcBeKafkaUser }}
22 labels:
23 strimzi.io/cluster: {{ include "common.release" . }}-strimzi
24spec:
25 authentication:
26 type: {{ .Values.config.kafka.saslMech }}
27 authorization:
28 type: {{ .Values.config.kafka.authType }}
29 acls:
30 - resource:
31 type: group
32 name: {{ .Values.config.kafka.topicConsumer.groupId }}-{{ .Values.env.name }}
33 operation: Read
34 - resource:
35 type: topic
36 patternType: prefix
37 name: {{ .Values.config.kafka.topicConsumer.pattern }}
38 operation: All
39{{- end }}