apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: build-controller-namespace
rules:
  - apiGroups: ['']
    resources: ['configmaps']
    verbs: ['get', 'create', 'update']
  - apiGroups: ['coordination.k8s.io']
    resources: ['leases']
    verbs: ['create', 'get', 'update']
  - apiGroups: ['']
    resources: ['events']
    verbs: ['create']
