1
0
Fork 0
docker-easy-haproxy/helm/easyhaproxy-ingress/templates/clusterrolebinding.yaml
Joao Gilberto Magalhaes 899e6e8d23 Add helm package
2022-08-27 14:34:55 -05:00

20 lines
588 B
YAML

{{- if .Values.serviceAccount.create -}}
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "easyhaproxy-ingress.fullname" . }}
labels:
{{- include "easyhaproxy-ingress.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "easyhaproxy-ingress.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "easyhaproxy-ingress.serviceAccountName" . }}
{{- end }}