File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
pkg/cmd/server/bootstrappolicy Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 88
88
)
89
89
90
90
func GetBootstrapOpenshiftRoles (openshiftNamespace string ) []rbac.Role {
91
- roles := []rbac.Role {
91
+ return []rbac.Role {
92
92
{
93
93
ObjectMeta : metav1.ObjectMeta {
94
94
Name : OpenshiftSharedResourceViewRoleName ,
@@ -111,17 +111,6 @@ func GetBootstrapOpenshiftRoles(openshiftNamespace string) []rbac.Role {
111
111
},
112
112
},
113
113
}
114
-
115
- // we don't want to expose the resourcegroups externally because it makes it very difficult for customers to learn from
116
- // our default roles and hard for them to reason about what power they are granting their users
117
- for i := range roles {
118
- for j := range roles [i ].Rules {
119
- roles [i ].Rules [j ].Resources = authorizationapi .NormalizeResources (sets .NewString (roles [i ].Rules [j ].Resources ... )).List ()
120
- }
121
- }
122
-
123
- return roles
124
-
125
114
}
126
115
127
116
func GetOpenshiftBootstrapClusterRoles () []rbac.ClusterRole {
You can’t perform that action at this time.
0 commit comments