Skip to content

Commit

Permalink
[EV-3840] Add networkpolicies to policy rec clusterrole
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-nicolo committed Jul 7, 2023
1 parent 0e23a10 commit 52eb93e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/render/policyrecommendation.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func (pr *policyRecommendationComponent) clusterRole() client.Object {
"policyrecommendationscopes/status",
"stagednetworkpolicies",
"tier.stagednetworkpolicies",
"networkpolicies",
"tier.networkpolicies",
"globalnetworksets",
},
Verbs: []string{"create", "delete", "get", "list", "patch", "update", "watch"},
Expand Down
2 changes: 2 additions & 0 deletions pkg/render/policyrecommendation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ var _ = Describe("Policy recommendation rendering tests", func() {
"policyrecommendationscopes/status",
"stagednetworkpolicies",
"tier.stagednetworkpolicies",
"networkpolicies",
"tier.networkpolicies",
"globalnetworksets",
},
Verbs: []string{"create", "delete", "get", "list", "patch", "update", "watch"},
Expand Down

0 comments on commit 52eb93e

Please sign in to comment.