You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Deployment informer to replace direct API calls (#68)
* add deployemnt informer in place of direct API call
Signed-off-by: Brian DeHamer <bdehamer@github.com>
* clarify ClusterRole permission reqs in README
Signed-off-by: Brian DeHamer <bdehamer@github.com>
---------
Signed-off-by: Brian DeHamer <bdehamer@github.com>
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ which includes:
110
110
111
111
-**Namespace**: `deployment-tracker`
112
112
-**ServiceAccount**: Identity for the controller pod
113
-
-**ClusterRole**: Minimal permissions (`get`, `list`, `watch` on pods; `get` on other supported objects)
113
+
-**ClusterRole**: Minimal permissions (`get`, `list`, `watch` on pods and deployments; `get` on other supported objects)
114
114
-**ClusterRoleBinding**: Binds the ServiceAccount to the ClusterRole
115
115
-**Deployment**: Runs the controller with security hardening
116
116
@@ -140,6 +140,8 @@ The controller requires the following minimum permissions:
140
140
| API Group | Resource | Verbs |
141
141
|-----------|----------|-------|
142
142
|`""` (core) |`pods`|`get`, `list`, `watch`|
143
+
|`apps`|`deployments`|`get`, `list`, `watch`|
144
+
|`apps`|`replicasets`|`get`|
143
145
144
146
If you only need to monitor a single namespace, you can modify the manifest to use a `Role` and `RoleBinding` instead of `ClusterRole` and `ClusterRoleBinding` for more restricted permissions.
0 commit comments