Skip to content

Commit

Permalink
[release-v1.43] Expose all CDI CRDs to cluster-readers (#2246)
Browse files Browse the repository at this point in the history
Manual backport of #2245

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
  • Loading branch information
arnongilboa authored Apr 26, 2022
1 parent 57a377b commit bd6b58a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/operator/resources/cluster/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ func getViewPolicyRules() []rbacv1.PolicyRule {
"cdi.kubevirt.io",
},
Resources: []string{
"cdiconfigs",
"dataimportcrons",
"datasources",
"datavolumes",
"objecttransfers",
"storageprofiles",
},
Verbs: []string{
"get",
Expand Down
5 changes: 5 additions & 0 deletions tests/rbac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ var _ = Describe("Aggregated role definition tests", func() {
"cdi.kubevirt.io",
},
Resources: []string{
"cdiconfigs",
"dataimportcrons",
"datasources",
"datavolumes",
"objecttransfers",
"storageprofiles",
},
Verbs: []string{
"get",
Expand Down

0 comments on commit bd6b58a

Please sign in to comment.