quorate/vendor/workloads/grafana/credential-rotation/rbac.yaml

36 lines
682 B
YAML
Raw Permalink Normal View History

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kyverno:grafana-mutator
rules:
- apiGroups:
- grafana.integreatly.org
resources:
- grafanas
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kyverno:grafana-mutator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kyverno:grafana-mutator
subjects:
- kind: ServiceAccount
name: kyverno-background-controller
namespace: kyverno