Skip to content

Commit

Permalink
Test additional permissions
Browse files Browse the repository at this point in the history
Signed-off-by: machadovilaca <machadovilaca@gmail.com>
  • Loading branch information
machadovilaca committed Jul 11, 2024
1 parent d34065c commit 9640e85
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ rules:
- monitoring.coreos.com
resources:
- alertmanagers
- alertmanagers/api
verbs:
- '*'
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ spec:
- monitoring.coreos.com
resources:
- alertmanagers
- alertmanagers/api
verbs:
- '*'
serviceAccountName: hyperconverged-cluster-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
certified: "false"
console.openshift.io/disable-operand-delete: "true"
containerImage: quay.io/kubevirt/hyperconverged-cluster-operator:1.13.0-unstable
createdAt: "2024-07-09 14:37:18"
createdAt: "2024-07-11 09:35:24"
description: A unified operator deploying and controlling KubeVirt and its supporting
operators with opinionated defaults
features.operators.openshift.io/cnf: "false"
Expand Down Expand Up @@ -543,6 +543,7 @@ spec:
- monitoring.coreos.com
resources:
- alertmanagers
- alertmanagers/api
verbs:
- '*'
serviceAccountName: hyperconverged-cluster-operator
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func GetClusterPermissions() []rbacv1.PolicyRule {
},
{
APIGroups: stringListToSlice("monitoring.coreos.com"),
Resources: stringListToSlice("alertmanagers"),
Resources: stringListToSlice("alertmanagers", "alertmanagers/api"),
Verbs: stringListToSlice("*"),
},
}
Expand Down

0 comments on commit 9640e85

Please sign in to comment.