apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: example:ipam-controller
rules:
- apiGroups:
  - network.example.com
  resources:
  - subnets
  - networkattachments
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - network.example.com
  resources:
  - networkattachments/status
  verbs:
  - update
- apiGroups:
  - network.example.com
  resources:
  - iplocks
  verbs:
  - create
  - get
  - list
  - watch
  - delete
- apiGroups:
  - ""
  resources:
  - events
  verbs:
  - create
