Skip to content

Commit

Permalink
fix: GITOPS-4133 Creating Job from CronJob using ArgoCD UI fails with…
Browse files Browse the repository at this point in the history
… - cannot set blockOwnerDeletion

cherry-pick from argoproj-labs#1277
Signed-off-by: Cheng Fang <cfang@redhat.com>
  • Loading branch information
chengfang committed Mar 5, 2024
1 parent edd1237 commit 5081312
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions controllers/argocd/policyrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,12 @@ func policyRuleForServer() []v1.PolicyRule {
},
Resources: []string{
"jobs",
"cronjobs",
"cronjobs/finalizers",
},
Verbs: []string{
"create",
"update",
},
},
}
Expand Down Expand Up @@ -245,9 +248,12 @@ func policyRuleForServerApplicationSourceNamespaces() []v1.PolicyRule {
},
Resources: []string{
"jobs",
"cronjobs",
"cronjobs/finalizers",
},
Verbs: []string{
"create",
"update",
},
},
}
Expand Down Expand Up @@ -297,9 +303,12 @@ func policyRuleForServerClusterRole() []v1.PolicyRule {
},
Resources: []string{
"jobs",
"cronjobs",
"cronjobs/finalizers",
},
Verbs: []string{
"create",
"update",
},
},
}
Expand Down

0 comments on commit 5081312

Please sign in to comment.