Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-1796

Pruner job not getting created for namespace with annotation operator.tekton.dev/prune.schedule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • Pipelines 1.6
    • Pipelines 1.6
    • Operator
    • None
    • False
    • False

      Pruner job not getting created for namespace with annotation operator.tekton.dev/prune.schedule

      Steps to Reproduce

      1. Edit config CR with below values for pruner partĀ 
        pruner:
        keep: 2
        resources:
        - taskrun
        - pipelinerun
        schedule: '*/2 * * * *'
        
      1. Add annotation operator.tekton.dev/prune.schedule: "/1 * * * * "

      Expected Behaviour:

      Job to prune the resources should get created

      Observed Behaviour:

      Job creation is getting failed with errorĀ 

      Error creating: pods "tekton-resource-pruner-27274557--1-" is forbidden: error looking up service account veeresh-testing/tekton-pipelines-controller: serviceaccount "tekton-pipelines-controller" not found
      

              pradkuma PRADEEP KUMAR (Inactive)
              varadhya Veeresh Aradhya (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: