41 lines
1.2 KiB
YAML
41 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
|