blob: a164289a4d47d9039585c3d9385f4d6bd46fd9b7 [file] [log] [blame]
Giorgi Lekveishvili8ef64552025-07-11 13:45:39 +04001{{- /*
2Copyright Broadcom, Inc. All Rights Reserved.
3SPDX-License-Identifier: APACHE-2.0
4*/}}
5
6{{- if .Values.rbac.create }}
7apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
8kind: RoleBinding
9metadata:
10 name: {{ template "common.names.fullname" . }}
11 namespace: {{ include "common.names.namespace" . | quote }}
12 labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13 {{- if .Values.commonAnnotations }}
14 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
15 {{- end }}
16roleRef:
17 apiGroup: rbac.authorization.k8s.io
18 kind: Role
19 name: {{ template "common.names.fullname" . }}
20subjects:
21 - kind: ServiceAccount
22 name: {{ template "redis.serviceAccountName" . }}
23{{- end }}