Home / FAQ / How to modify the execution record (TaskRuns) cleaning strategy for continuous build, pipeline, and artifact promotion?

How to modify the execution record (TaskRuns) cleaning strategy for continuous build, pipeline, and artifact promotion?

Background: When using continuous build, pipeline, and artifact promotion in DevOps, in order to avoid the execution records generated by frequent executions causing memory overflow (OOM, Out of Memory) in Katanoni Operator related components, the platform provides a default cleaning strategy: a maximum of 2800 records are retained in the cluster where the Operator is located, and each record is retained for 7 days. The execution records are saved in the etcd of the platform components. You can modify this strategy according to the storage situation of etcd and your need to view the execution records.

Note:

Procedure

  1. In the left navigation bar, click Catalog > Operators.

  2. Click the Deployed Operators tab.

  3. Click katanomi-operator.

  4. In the Resource Instances tab, update the instance of type Katanomi.

    You need to switch to the YAML view to operate.

    spec:
      helmValues:
        global:
          taskRunPruner:
            delayAfterCompleted: 168h #Retention per Record 7 days
            keep: 2800 #Maximum Retention 2800 Execution Records
  5. Click Update.