apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: jenkins-role
  labels:
  {{- include "jenkins-operator.metaLabels" . | nindent 4 }}
subjects:
  - kind: ServiceAccount
    name: {{ .Values.jenkins.serviceAccountName }}
    namespace: {{ .Release.Namespace }}
roleRef:
  kind: ClusterRole
  name: cluster-admin
  apiGroup: rbac.authorization.k8s.io
