diff --git a/controllers/argocd/policyrule.go b/controllers/argocd/policyrule.go index 276136bf2..11f9595cc 100644 --- a/controllers/argocd/policyrule.go +++ b/controllers/argocd/policyrule.go @@ -144,6 +144,17 @@ func policyRuleForServer() []v1.PolicyRule { "list", }, }, + { + APIGroups: []string{ + "batch", + }, + Resources: []string{ + "jobs", + }, + Verbs: []string{ + "create", + }, + }, } } @@ -229,6 +240,17 @@ func policyRuleForServerApplicationSourceNamespaces() []v1.PolicyRule { "delete", }, }, + { + APIGroups: []string{ + "batch", + }, + Resources: []string{ + "jobs", + }, + Verbs: []string{ + "create", + }, + }, } } @@ -270,6 +292,17 @@ func policyRuleForServerClusterRole() []v1.PolicyRule { "list", }, }, + { + APIGroups: []string{ + "batch", + }, + Resources: []string{ + "jobs", + }, + Verbs: []string{ + "create", + }, + }, } }