tektoncd / tektoncd/pruner

Namespace-level Tekton Pruner ConfigMap updates do not trigger immediate pruning

Open
#139 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
Go
Stars
6
Forks
19
Avg merge
12h 36m
Merged PRs (30d)
27

Description

Expected Behavior

Updating a namespace-level pruner ConfigMap should immediately reconcile and enforce the new pruning limits. The number of retained PipelineRuns should match the updated ConfigMap values without requiring additional PipelineRun events.

Actual Behavior

When a namespace-level pruner ConfigMap is updated, pruning does not occur immediately.
The new configuration is only applied after a PipelineRun completes (Succeeded or Failed) in the affected namespace.

Steps to Reproduce the Problem

  1. Create a namespace-level pruner ConfigMap that overrides global pruning settings.
  2. Create PipelineRuns in the namespace until pruning occurs (works as expected).
  3. Update the namespace-level ConfigMap with new pruning values.
  4. Observe that pruning does not occur after the update.
  5. Trigger a new PipelineRun and wait for it to complete.
  6. Observe that pruning now occurs using the updated configuration.

Additional Info

  • Kubernetes version: 1.29.15

  • Tekton Pipeline version: 1.6.0

  • Tekton Pruner version: 0.3.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how namespace-level pruner ConfigMap updates enter the controller and how reconciliation is triggered. Reproduce the issue by changing the ConfigMap without creating a PipelineRun, then verify that the retained PipelineRun count matches the updated limits immediately after the update.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.