Skip to content

Commit

Permalink
add namespace to clusterrole
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinblack committed Sep 9, 2023
1 parent a441801 commit 064479f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions controllers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,21 +269,22 @@ func appServiceAccount(cr *hyperfoilv1alpha1.Horreum) *corev1.ServiceAccount {
func appClusterRole(cr *hyperfoilv1alpha1.Horreum) *rbacv1.ClusterRole {
return &rbacv1.ClusterRole{
ObjectMeta: metav1.ObjectMeta{
Name: "horreum-init-cluster-role",
Name: "horreum-init-cluster-role",
Namespace: cr.Namespace,
},
Rules: []rbacv1.PolicyRule{
{
APIGroups: []string{
"- security.openshift.io",
"security.openshift.io",
},
ResourceNames: []string{
"- anyuid",
"anyuid",
},
Resources: []string{
"- securitycontextconstraints",
"securitycontextconstraints",
},
Verbs: []string{
"- use",
"use",
},
},
},
Expand Down

0 comments on commit 064479f

Please sign in to comment.