rancher-partner-charts/charts/f5/nginx-ingress/1.3.2/templates/clusterrolebinding.yaml

17 lines
478 B
YAML

{{- if .Values.rbac.create }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "nginx-ingress.fullname" . }}
labels:
{{- include "nginx-ingress.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ include "nginx-ingress.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: {{ include "nginx-ingress.fullname" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}