Files
charts/bitnami/rabbitmq/templates/rolebinding.yaml
Juan Ariza Toledano 43e70827ef [bitnami/rabbitmq] Rely on container initialization + refactoring to follow Helm chart best practices (#2843)
* [bitnami/rabbitmq] Rely on container initialization + refactoring to follow Helm chart best practices

Signed-off-by: juan131 <juanariza@vmware.com>
2020-06-17 09:22:06 +02:00

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 }}