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