Namespace-level Tekton Pruner ConfigMap updates do not trigger immediate pruning
Nobody has claimed this yet.
- 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
- Create a namespace-level pruner ConfigMap that overrides global pruning settings.
- Create PipelineRuns in the namespace until pruning occurs (works as expected).
- Update the namespace-level ConfigMap with new pruning values.
- Observe that pruning does not occur after the update.
- Trigger a new PipelineRun and wait for it to complete.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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