Skip to content

Commit

Permalink
Add serviceaccount list to network-admin and user-ui (#3687)
Browse files Browse the repository at this point in the history
* Add serviceaccount list to network-admin and user-ui

* Fix dirty felixconfigurations.yaml
  • Loading branch information
dimitri-nicolo authored Jan 10, 2025
1 parent 24c6261 commit c792fcc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/render/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,12 @@ func (c *apiServerComponent) tigeraUserClusterRole() *rbacv1.ClusterRole {
Resources: []string{"pods"},
Verbs: []string{"list"},
},
// Additional "list" requests required to view serviceaccount labels.
{
APIGroups: []string{""},
Resources: []string{"serviceaccounts"},
Verbs: []string{"list"},
},
// Access to statistics.
{
APIGroups: []string{""},
Expand Down Expand Up @@ -1847,6 +1853,12 @@ func (c *apiServerComponent) tigeraNetworkAdminClusterRole() *rbacv1.ClusterRole
Resources: []string{"pods"},
Verbs: []string{"list"},
},
// Additional "list" requests required to view serviceaccount labels.
{
APIGroups: []string{""},
Resources: []string{"serviceaccounts"},
Verbs: []string{"list"},
},
// Access to statistics.
{
APIGroups: []string{""},
Expand Down
10 changes: 10 additions & 0 deletions pkg/render/apiserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,11 @@ var (
Resources: []string{"pods"},
Verbs: []string{"list"},
},
{
APIGroups: []string{""},
Resources: []string{"serviceaccounts"},
Verbs: []string{"list"},
},
{
APIGroups: []string{""},
Resources: []string{"services/proxy"},
Expand Down Expand Up @@ -1467,6 +1472,11 @@ var (
Resources: []string{"pods"},
Verbs: []string{"list"},
},
{
APIGroups: []string{""},
Resources: []string{"serviceaccounts"},
Verbs: []string{"list"},
},
{
APIGroups: []string{""},
Resources: []string{"services/proxy"},
Expand Down

0 comments on commit c792fcc

Please sign in to comment.