# permissions for end users to view listpods.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: listpod-viewer-role
rules:
  - apiGroups: [""]
    resources: ["pods", "nodes"]
    verbs: ["get", "watch", "list"]
  - apiGroups: [""]
    resources: ["configmaps"]
    verbs: ["get", "list", "watch", "create", "update", "patch"]
  - apiGroups:
      - webapp.begin
    resources:
      - listpods
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - webapp.begin
    resources:
      - listpods/status
    verbs:
      - get
