Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-3617

Create Job from Cronjob feature failing with error cannot create resource "jobs"

XMLWordPrintable

    • 5
    • 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.
    • GITOPS Sprint 3252, GITOPS Sprint 3253

      Description of problem:

      New feature added with ArgoCD v2.8 Create a Job from a CronJob is failing with below error:

       

      Unable to execute resource action: jobs.batch is forbidden: User "system:serviceaccount:openshift-gitops:openshift-gitops-argocd-server" cannot create resource "jobs" in API group "batch" in the namespace "openshift-gitops" 

      In the error the SA is of `argocd-server` which has no create permissions. 

       

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      • Use GitOps v1.9.3+
      • Create a Application with a CronJob
      • On Application page look for the CronJob name Tile, click on options button of the tile, and then click on Create Job

      Actual results:

          • Throws error Cannot create resource Jobs.

            Expected results:

      • Creates Job Successfully.

        Reproducibility (Always/Intermittent/Only Once): Always

        Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      Screenshot attached.

       *

            cfang@redhat.com Cheng Fang
            rhn-support-sburhade Satyam Burhade
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: