File tree 2 files changed +12
-2
lines changed
controllers/argocd/openshift
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,17 @@ func policyRulesForClusterConfig() []rbacv1.PolicyRule {
333
333
"*" ,
334
334
},
335
335
},
336
+ {
337
+ APIGroups : []string {
338
+ "" ,
339
+ },
340
+ Resources : []string {
341
+ "serviceaccounts" ,
342
+ },
343
+ Verbs : []string {
344
+ "impersonate" ,
345
+ },
346
+ },
336
347
}
337
348
}
338
349
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ func TestReconcileArgoCD_reconcileMultipleClusterRoles(t *testing.T) {
45
45
a := makeTestArgoCDForClusterConfig ()
46
46
testApplicableClusterRole := & rbacv1.ClusterRole {
47
47
ObjectMeta : metav1.ObjectMeta {
48
- Name : a .Name + "-" + a .Namespace + "-" + testApplicationController ,
49
- Namespace : a .Namespace ,
48
+ Name : a .Name + "-" + a .Namespace + "-" + testApplicationController ,
50
49
},
51
50
Rules : makeTestPolicyRules (),
52
51
}
You can’t perform that action at this time.
0 commit comments