# This rule is not used by the project agent-control-server itself.
# It is provided to allow the cluster admin to help manage permissions for users.
#
# Grants full permissions ('*') over agent.observability.pingcap.com.
# This role is intended for users authorized to modify roles and bindings within the cluster,
# enabling them to delegate specific permissions to other users or groups as needed.

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    app.kubernetes.io/name: agent-control-server
    app.kubernetes.io/managed-by: kustomize
  name: o11yk8sagent-admin-role
rules:
- apiGroups:
  - agent.observability.pingcap.com
  resources:
  - o11yk8sagents
  verbs:
  - '*'
- apiGroups:
  - agent.observability.pingcap.com
  resources:
  - o11yk8sagents/status
  verbs:
  - get
