-
Bug
-
Resolution: Done
-
Major
-
1.11.0, 1.11.1
-
3
-
False
-
None
-
False
-
With the fix in this issue, users can now go to Argo CD UI and create job executions from cron job defined in a deployed Argo CD application.
-
Bug Fix
-
Proposed
-
-
-
-
GITOPS Sprint 3253, GITOPS Sprint 3254
Description of problem:
When attempting to Create Job from a CronJob in ArgoCD UI, following error is observed:
Unable to execute resource action: jobs.batch "hello-202402250648" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>
Note: The initial error is as mentioned in GITOPS-3617 . The above error occurs only after applying workaround for GITOPS-3617 .
Workaroud:
Adding cronjobs/finalizers resource update access to openshift-gitops-argocd-server service account helps resolve the issue.
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Install Red Hat Openshift Gitops v1.11.x
- Create an Application with a Cronjob
- Apply workaround of
GITOPS-3617 - Try to start the CronJob using ArgoCD UI - select the created Application in ArgoCD UI, find the CronJob object and start the cronjob using Create Job
Actual results:
- The CronJob fails to create the Job instance
Expected results:
- The CronJob should be able to create the Job instance
Reproducibility (Always/Intermittent/Only Once): Always
Acceptance criteria:
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):
Screenshot attached : Screenshot from 2024-02-25 12-19-04.png
*
- links to