blob: 43edb64c8347fa6cd713d1c8bd6d37aafce1d3df [file] [log] [blame]
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +01001{{/*
2# Copyright © 2022 Nordix Foundation
Sirisha_Manchikantib402a592022-09-09 12:01:20 +01003# Modifications Copyright © 2022 Nordix Foundation
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +01004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16*/}}
17{{- if .Values.config.useStrimziKafka }}
18apiVersion: kafka.strimzi.io/v1beta2
19kind: KafkaUser
20metadata:
21 name: {{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}
22 labels:
23 strimzi.io/cluster: {{ include "common.release" . }}-strimzi
24spec:
25 authentication:
26 type: scram-sha-512
27 authorization:
28 type: simple
29 acls:
30 - resource:
31 type: group
32 name: {{ .Values.config.acRuntimeTopic.consumer.groupId }}
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010033 operation: All
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010034 - resource:
35 type: topic
36 name: {{ .Values.config.acRuntimeTopic.name }}
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010037 operation: All
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010038 - resource:
39 type: topic
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010040 name: {{ .Values.config.policyPdpPapTopic.name }}
41 operation: All
42 - resource:
43 type: topic
44 name: {{ .Values.config.policyHeartbeatTopic.name }}
45 operation: All
46 - resource:
47 type: topic
48 name: {{ .Values.config.policyNotificationTopic.name }}
49 operation: All
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010050{{- end }}