pipeline icon indicating copy to clipboard operation
pipeline copied to clipboard

PVC not deleted if PipelineRun deleted while still running

Open jimmyjones2 opened this issue 1 year ago • 3 comments

Expected Behavior

In coschedule: pipelineruns mode, when a PipelineRun that is still running is deleted, the associated PVC created by the volumeClaimTemplate is also deleted.

Actual Behavior

The created PVC is not deleted. This is unlike deleting a finished PipelineRun, where the PVC will be deleted.

Steps to Reproduce the Problem

  1. Enable coschedule: pipelineruns
  2. Create a PipelineRun with a volumeClaimTemplate
  3. Delete the PipelineRun before it completes

Additional Info

@QuanZhang-William related to #7138 ?

  • Kubernetes version:
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.4", GitCommit:"fa3d7990104d7c1f16943a67f11b154b71f6a132", GitTreeState:"clean", BuildDate:"2023-07-19T12:14:49Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"linux/amd64"}
  • Tekton Pipeline version:
v0.53.0

jimmyjones2 avatar Jan 25 '24 21:01 jimmyjones2

cc @pritidesai @JeromeJu @jerop

vdemeester avatar Feb 06 '24 08:02 vdemeester

@QuanZhang-William @gerrnot Did you manage to reproduce?

jimmyjones2 avatar May 04 '24 08:05 jimmyjones2

yes, reproducible with tkn version:

Client version: 0.36.0
Chains version: v0.20.0
Pipeline version: v0.56.1
Triggers version: v0.26.1
Dashboard version: v0.43.1
Operator version: v0.70.0

gerrnot avatar May 13 '24 14:05 gerrnot