Architecture Of Konflux

65. Adopt KubeArchive for resource lifecycle management

Date: 2026-03-16

# Status

Implemented

# Context

Konflux generates a large amount of one-shot Kubernetes resources such as PipelineRuns, TaskRuns, Snapshots, Releases… Some of these remain on the cluster, worsening the performance on Etcd and thus on the performance on the cluster. Konflux used (and still uses at the time of writing) Tekton Results to handle the cleanup and storage of Tekton related resources (PipelineRuns, TaskRuns …). While useful, Tekton Results does not handle non-Tekton resources, leaving Konflux with a large number of Snapshots and Releases without cleaning. Konflux developed custom scripts to address the cleanup of these resources, but they were not persisted for future reference.

# Decision

With this context in mind, Konflux decided to adopt KubeArchive, a tool that archives and is able to delete resources for the cluster, born from the idea of Tekton Results but generalized to arbitrary Kubernetes resources. KubeArchive covered the archival and deletion of Snapshots and Releases. KubeArchive could handle PipelineRuns, TaskRuns, Pods and their logs as well, so Konflux decided to gradually adopt KubeArchive for these resources and remove Tekton Results from Konflux.

The decision was based on the following points:

# Consequences