Summary
TaskRuns started with Chains v0.24.0 are stuck unable to be deleted after update to Chains v0.27.x. Since Chains v0.27.0 started to use service-side-apply method to manipulate finalizers and chains.tekton.dev was applied using patch-merge method, the operator cannot remove it. As a result, old pre-update started TaskRuns cannot get deleted without human intervention.
Expected Behavior
TaskRuns started on earlier releases of Chains controller than v0.27.x should get deleted successfully when requested.
Actual Behavior
TaskRuns starter on Chains v0.24.0 are stuck and cannot be deleted due to presence of the old chains.tekton.dev finalizer after the update to Chains v0.27.x
Steps to Reproduce the Problem
- Deploy Chains v0.24.0
- Start a TaskRun . Check that the TaskRun gets
chains.tekton.dev finalizer in its metadata added.
- Deploy Chains v0.27.x
- Wait a little and describe the TaskRun. Check that a new finalizer
chains.tekton.dev/taskrun is added to the metadata. At this point, there should be 2 finalizers listed on the TaskRun: chains.tekton.dev and chains.tekton.dev/taskrun
- Run
kubectl delete tr <name> to delete the TaskRun. Witness that the deletion is stuck.
- Describe the stuck TaskRun. It will have only
chains.tekton.dev finalizer listed, since the newer one will get removed.
Additional Info
Client Version: v1.35.6
Kustomize Version: v5.7.1
Server Version: v1.28.0
- Tekton Pipeline version:
version: v1.12.0
Summary
TaskRuns started with Chains v0.24.0 are stuck unable to be deleted after update to Chains v0.27.x. Since Chains v0.27.0 started to use service-side-apply method to manipulate finalizers and
chains.tekton.devwas applied using patch-merge method, the operator cannot remove it. As a result, old pre-update started TaskRuns cannot get deleted without human intervention.Expected Behavior
TaskRuns started on earlier releases of Chains controller than v0.27.x should get deleted successfully when requested.
Actual Behavior
TaskRuns starter on Chains v0.24.0 are stuck and cannot be deleted due to presence of the old
chains.tekton.devfinalizer after the update to Chains v0.27.xSteps to Reproduce the Problem
chains.tekton.devfinalizer in its metadata added.chains.tekton.dev/taskrunis added to the metadata. At this point, there should be 2 finalizers listed on the TaskRun:chains.tekton.devandchains.tekton.dev/taskrunkubectl delete tr <name>to delete the TaskRun. Witness that the deletion is stuck.chains.tekton.devfinalizer listed, since the newer one will get removed.Additional Info
version: v1.12.0