File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ metadata:
27
27
name : mongodb-kubernetes-appdb
28
28
namespace : mongodb
29
29
rules :
30
+ # Existing permissions
30
31
- apiGroups :
31
32
- ' '
32
33
resources :
@@ -41,6 +42,33 @@ rules:
41
42
- patch
42
43
- delete
43
44
- 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
44
72
---
45
73
# Source: mongodb-kubernetes/templates/database-roles.yaml
46
74
kind : RoleBinding
You can’t perform that action at this time.
0 commit comments