clusterrolebinding.yaml 612 B

12345678910111213141516171819
  1. {{- if and .Values.rbac.create (not .Values.rbac.scope) -}}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRoleBinding
  4. metadata:
  5. labels:
  6. {{- include "ingress-nginx.labels" . | nindent 4 }}
  7. {{- with .Values.controller.labels }}
  8. {{- toYaml . | nindent 4 }}
  9. {{- end }}
  10. name: {{ include "ingress-nginx.fullname" . }}
  11. roleRef:
  12. apiGroup: rbac.authorization.k8s.io
  13. kind: ClusterRole
  14. name: {{ include "ingress-nginx.fullname" . }}
  15. subjects:
  16. - kind: ServiceAccount
  17. name: {{ template "ingress-nginx.serviceAccountName" . }}
  18. namespace: {{ .Release.Namespace | quote }}
  19. {{- end }}