patcher-clusterrolebinding.yaml 603 B

1234567891011121314151617
  1. {{- if .Values.plugin.jobs.patchConsoles.enabled }}
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRoleBinding
  4. metadata:
  5. name: {{ template "openshift-console-plugin.patcherName" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "openshift-console-plugin.labels" . | nindent 4 }}
  9. roleRef:
  10. apiGroup: rbac.authorization.k8s.io
  11. kind: ClusterRole
  12. name: {{ template "openshift-console-plugin.patcherName" . }}
  13. subjects:
  14. - kind: ServiceAccount
  15. name: {{ template "openshift-console-plugin.patcherServiceAccountName" . }}
  16. namespace: {{ .Release.Namespace }}
  17. {{- end }}