mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
[cozystack-controller] Clusterwide read perms
In an earlier patch the Cozystack controller now reads arbitrary objects in the cluster to establish the lineage of any created pod, service, pvc, or secret. These objects may be created by various other controllers, so in general, the controller now requires read permissions on arbitrary objects in the cluster. ```release-note [cozystack-controler] Fix an RBAC error that prevented the workload labelling feature from working. ``` Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
This commit is contained in:
@@ -3,9 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: cozystack-controller
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps", "pods", "namespaces", "nodes", "services", "persistentvolumes", "persistentvolumeclaims"]
|
||||
verbs: ["get", "watch", "list"]
|
||||
- apiGroups: ['cozystack.io']
|
||||
resources: ['*']
|
||||
verbs: ['*']
|
||||
@@ -15,6 +12,6 @@ rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["namespaces"]
|
||||
verbs: ["get", "list", "watch", "patch", "update"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments"]
|
||||
- apiGroups: ['*']
|
||||
resources: ['*']
|
||||
verbs: ["get", "list", "watch"]
|
||||
|
||||
Reference in New Issue
Block a user