clusterrolebinding.yaml 654 B

12345678910111213141516171819
  1. {{- if .Values.rbac.create }}
  2. kind: ClusterRoleBinding
  3. apiVersion: rbac.authorization.k8s.io/v1
  4. metadata:
  5. labels:
  6. app: {{ template "nfs-client-provisioner.name" . }}
  7. chart: {{ template "nfs-client-provisioner.chart" . }}
  8. heritage: {{ .Release.Service }}
  9. release: {{ .Release.Name }}
  10. name: run-{{ template "nfs-client-provisioner.fullname" . }}
  11. subjects:
  12. - kind: ServiceAccount
  13. name: {{ template "nfs-client-provisioner.serviceAccountName" . }}
  14. namespace: {{ .Release.Namespace }}
  15. roleRef:
  16. kind: ClusterRole
  17. name: {{ template "nfs-client-provisioner.fullname" . }}-runner
  18. apiGroup: rbac.authorization.k8s.io
  19. {{- end }}