Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'persistentvolumeclaims' access permission for exporter
Following error messages are logged in ocs-metrics-exporter pod, ``` Failed to watch *v1.PersistentVolume: unable to sync list result: failed to get node name for pod: failed to get PVC openshift-storage/db-noobaa-db-pg-0: persistentvolumeclaims "db-noobaa-db-pg-0" is forbidden: User "system:serviceaccount:openshift-storage:ocs-metrics-exporter" cannot get resource "persistentvolumeclaims" in API group "" in the namespace "openshift-storage" ``` ``` Failed to watch *v1.PersistentVolume: unable to sync list result: failed to get node name for pod: failed to list pods in namespace openshift-storage: pods is forbidden: User "system:serviceaccount:openshift-storage:ocs-metrics-exporter" cannot list resource "pods" in API group "" in the namespace "openshift-storage" ``` Adding resources, 'persistentvolumeclaims' and 'pods', to the existing roles. Signed-off-by: Arun Kumar Mohan <[email protected]>
- Loading branch information