# permissions for end users to view volumes.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: volume-viewer-role
rules:
- apiGroups:
  - zfs.unstable.cloud
  resources:
  - volumes
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - zfs.unstable.cloud
  resources:
  - volumes/status
  verbs:
  - get
