Skip to content

Commit 92f48f4

Browse files
committed
give appdb all permissions for poc
1 parent 1ad24cf commit 92f48f4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

config/rbac/database-roles.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ metadata:
2727
name: mongodb-kubernetes-appdb
2828
namespace: mongodb
2929
rules:
30+
# Existing permissions
3031
- apiGroups:
3132
- ''
3233
resources:
@@ -41,6 +42,33 @@ rules:
4142
- patch
4243
- delete
4344
- get
45+
- list # List all pods in replica set for coordination
46+
47+
# Additional permissions for agent coordination and self-deletion
48+
- apiGroups:
49+
- apps
50+
resources:
51+
- statefulsets
52+
verbs:
53+
- get # Read StatefulSet to get target revision
54+
- list # List StatefulSets in namespace
55+
- apiGroups:
56+
- apps
57+
resources:
58+
- controllerrevisions
59+
verbs:
60+
- get # Read controller revisions for version comparison
61+
- list # List revisions to find target state
62+
- apiGroups:
63+
- ''
64+
resources:
65+
- configmaps
66+
verbs:
67+
- get # Read coordination state ConfigMap
68+
- list # List ConfigMaps (for coordination state discovery)
69+
- patch # Update coordination state with own status
70+
- update # Update coordination state
71+
- create # Create coordination ConfigMap if needed
4472
---
4573
# Source: mongodb-kubernetes/templates/database-roles.yaml
4674
kind: RoleBinding

0 commit comments

Comments
 (0)