mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
* [bitnami/rabbitmq] Rely on container initialization + refactoring to follow Helm chart best practices Signed-off-by: juan131 <juanariza@vmware.com>
16 lines
520 B
YAML
16 lines
520 B
YAML
{{- if and .Values.serviceAccount.create .Values.rbac.create }}
|
|
kind: RoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ template "rabbitmq.fullname" . }}-endpoint-reader
|
|
namespace: {{ .Release.Namespace }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "rabbitmq.serviceAccountName" . }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ template "rabbitmq.fullname" . }}-endpoint-reader
|
|
{{- end }}
|