Skip to content

Commit

Permalink
Add permissions for pods/logs to the manageiq-automation role
Browse files Browse the repository at this point in the history
Fixes:
cannot get resource "pods/log" in API group "" in the namespace...
  • Loading branch information
bdunne committed Oct 10, 2023
1 parent 72de19d commit 77f6a15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manageiq-operator/api/v1alpha1/helpers/miq-components/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ func AutomationRole(cr *miqv1alpha1.ManageIQ, scheme *runtime.Scheme) (*rbacv1.R
Resources: []string{"pods", "secrets"},
Verbs: []string{"create", "delete", "get", "list", "patch", "update", "watch"},
},
rbacv1.PolicyRule{
APIGroups: []string{""},
Resources: []string{"pods/logs"},
Verbs: []string{"get"},
},
}

return nil
Expand Down

0 comments on commit 77f6a15

Please sign in to comment.