Skip to content

Commit

Permalink
Merge pull request #999 from bdunne/automation_role_pods_logs
Browse files Browse the repository at this point in the history
Add permissions for pods/logs to the manageiq-automation role

(cherry picked from commit d80208a)
  • Loading branch information
Fryguy committed Oct 10, 2023
1 parent f945392 commit a51e5d3
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 a51e5d3

Please sign in to comment.