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

Update Operator to support full fledged configuration of Tekton Pruner in Tekton Config

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • Pipelines 1.20.0
    • Pipelines 1.20.0
    • Pruner
    • None
    • 8
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Now you can configure and install the tekton pruner using TektonConfig .

      TektonConfig Pruner Configuration

      Here is the default configuration:

      tektonpruner:
        disabled: true
        global-config:
          enforcedConfigLevel: global
          failedHistoryLimit: null
          historyLimit: 100
          successfulHistoryLimit: null
          ttlSecondsAfterFinished: null
        options: {}

      Enabling Tekton Pruner

      Tekton Pruner is now available as part of TektonConfig. You can manage its settings under the tektonpruner section.

      TektonPruner is disabled by default and to enable Tekton Pruner, set disabled to false in the tektonpruner section of your TektonConfig: At the same time you also need to disable the older pruner. Both pruners cannot be enabled at the same time.


      pruner:
        disabled: true
        tektonpruner:
        disabled: false

      If you try to enable both pruners, you will encounter an error during installation.

      🔧 Customizing History Retention
      You can fine-tune pruning behavior by modifying the following fields under global-config:

      historyLimit: Maximum number of failed and successful runs to retain. This field is shorthand for defining same value for failedHistoryLimit and successfulHistoryLimit.

      failedHistoryLimit: Number of failed runs to retain.

      successfulHistoryLimit: Number of successful runs to retain.

      ttlSecondsAfterFinished**: Time (in seconds) to retain completed runs before pruning.

      You can specify any combination of these fields. The pruner deletes runs when any one of the specified conditions is met.

      Example:
      global-config:
        ttlSecondsAfterFinished: 3600
        historyLimit: 100
      This configuration deletes the runs if:

      They are older than 1 hour, OR
      There are more than 100 successful runs, OR
      There are more than 100 failed runs
      Show
      Now you can configure and install the tekton pruner using TektonConfig . TektonConfig Pruner Configuration Here is the default configuration: tektonpruner:   disabled: true   global-config:     enforcedConfigLevel: global     failedHistoryLimit: null     historyLimit: 100     successfulHistoryLimit: null     ttlSecondsAfterFinished: null   options: {} Enabling Tekton Pruner Tekton Pruner is now available as part of TektonConfig. You can manage its settings under the tektonpruner section. TektonPruner is disabled by default and to enable Tekton Pruner, set disabled to false in the tektonpruner section of your TektonConfig: At the same time you also need to disable the older pruner. Both pruners cannot be enabled at the same time. pruner:   disabled: true   tektonpruner:   disabled: false If you try to enable both pruners, you will encounter an error during installation. 🔧 Customizing History Retention You can fine-tune pruning behavior by modifying the following fields under global-config: historyLimit: Maximum number of failed and successful runs to retain. This field is shorthand for defining same value for failedHistoryLimit and successfulHistoryLimit. failedHistoryLimit: Number of failed runs to retain. successfulHistoryLimit: Number of successful runs to retain. ttlSecondsAfterFinished**: Time (in seconds) to retain completed runs before pruning. You can specify any combination of these fields. The pruner deletes runs when any one of the specified conditions is met. Example: global-config:   ttlSecondsAfterFinished: 3600   historyLimit: 100 This configuration deletes the runs if: They are older than 1 hour, OR There are more than 100 successful runs, OR There are more than 100 failed runs
    • Enhancement
    • Done
    • Pipelines Sprint pioneers 33, Pipelines Sprint Pioneers 34, Pipelines Sprint Pioneers 35

      Story (Required)

      As a <PERSONA> trying to <ACTION> I want <THIS OUTCOME>

      <Describes high level purpose and goal for this story. Answers the questions: Who is impacted, what is it and why do we need it? How does it improve the customer’s experience?>

      Background (Required)

      <Describes the context or background related to this story>

      Out of scope

      <Defines what is not included in this story>

      Approach (Required)

      <Description of the general technical path on how to achieve the goal of the story. Include details like json schema, class definitions>

      Dependencies

      <Describes what this story depends on. Dependent Stories and EPICs should be linked to the story.>

      Acceptance Criteria (Mandatory)

      <Describe edge cases to consider when implementing the story and defining tests>

      <Provides a required and minimum list of acceptance tests for this story. More is expected as the engineer implements this story>

      _Please ensure - https://redhat-internal.slack.com/archives/CG5GV6CJD/p1754994549172009_

      INVEST Checklist

      Dependencies identified

      Blockers noted and expected delivery timelines set

      Design is implementable

      Acceptance criteria agreed upon

      Story estimated

      Legend

      Unknown

      Verified

      Unsatisfied

      Done Checklist

      • Code is completed, reviewed, documented and checked in
      • Unit and integration test automation have been delivered and running cleanly in continuous integration/staging/canary environment
      • Continuous Delivery pipeline(s) is able to proceed with new code included
      • Customer facing documentation, API docs etc. are produced/updated, reviewed and published
      • Acceptance criteria are met

              rh-ee-prbindal Pramod Bindal
              rh-ee-anataraj Anitha Natarajan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: