This repository has been archived on 2025-01-11. You can view files and clone it, but cannot push or open issues or pull requests.
theshire/kubernetes/apps/database/dragonfly/app/rbac.yaml
2024-09-05 16:04:37 -05:00

40 lines
1.2 KiB
YAML

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: dragonfly-operator
rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch"]
- apiGroups: [""]
resources: ["pods", "services"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
- apiGroups: ["apps"]
resources: ["statefulsets"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
- apiGroups: ["dragonflydb.io"]
resources: ["dragonflies"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
- apiGroups: ["dragonflydb.io"]
resources: ["dragonflies/finalizers"]
verbs: ["update"]
- apiGroups: ["dragonflydb.io"]
resources: ["dragonflies/status"]
verbs: ["get", "patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: dragonfly-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: dragonfly-operator
subjects:
- kind: ServiceAccount
name: dragonfly-operator
namespace: database