Skip to content

Commit

Permalink
NETOBSERV-1626: add configmaps to service account (#633)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Mahmoud <[email protected]>
  • Loading branch information
msherif1234 authored Apr 30, 2024
1 parent 216e3e6 commit a057c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/flp/flp_transfo_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (b *transfoBuilder) autoScaler() *ascv2.HorizontalPodAutoscaler {
// The operator needs to have at least the same permissions as flowlogs-pipeline in order to grant them
//+kubebuilder:rbac:groups=apps,resources=replicasets,verbs=get;list;watch
//+kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=create;delete;patch;update;get;watch;list
//+kubebuilder:rbac:groups=core,resources=pods;services;nodes,verbs=get;list;watch
//+kubebuilder:rbac:groups=core,resources=pods;services;nodes;configmaps,verbs=get;list;watch

func BuildClusterRoleTransformer() *rbacv1.ClusterRole {
return &rbacv1.ClusterRole{
Expand All @@ -96,7 +96,7 @@ func BuildClusterRoleTransformer() *rbacv1.ClusterRole {
Rules: []rbacv1.PolicyRule{{
APIGroups: []string{""},
Verbs: []string{"list", "get", "watch"},
Resources: []string{"pods", "services", "nodes"},
Resources: []string{"pods", "services", "nodes", "configmaps"},
}, {
APIGroups: []string{"apps"},
Verbs: []string{"list", "get", "watch"},
Expand Down

0 comments on commit a057c25

Please sign in to comment.