# permissions for end users to view keptnappcontexts.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    app.kubernetes.io/name: clusterrole
    app.kubernetes.io/instance: keptnappcontext-viewer-role
    app.kubernetes.io/component: rbac
    app.kubernetes.io/created-by: lifecycle-operator
    app.kubernetes.io/part-of: lifecycle-operator
    app.kubernetes.io/managed-by: kustomize
  name: keptnappcontext-viewer-role
rules:
  - apiGroups:
      - lifecycle.keptn.sh
    resources:
      - keptnappcontexts
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - lifecycle.keptn.sh
    resources:
      - keptnappcontexts/status
    verbs:
      - get
