Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-10219

Track upstream proposal: Optional PVC Auto-Cleanup for Workspaces Mode

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Objective:

      Track upstream Tekton proposal to add opt-in automatic PVC cleanup for the stable workspaces coscheduling mode.

      Context:

      Users running PipelineRuns with volumeClaimTemplate in stable workspaces mode accumulate PVCs after completion, causing increased storage costs and manual cleanup burden. Alpha modes (pipelineruns, isolate-pipelinerun) auto-delete PVCs, but there's no stable/production-ready option.

      An upstream proposal has been submitted to add an opt-in annotation (tekton.dev/auto-cleanup-pvc: "true") to enable PVC cleanup on PipelineRun completion. The implementation is straightforward (~20 lines of code), reusing existing cleanup logic from alpha modes. Fully backward compatible.

      Upstream References:

      Acceptance Criteria:

      • [ ] Monitor upstream discussion on the proposal
      • [ ] If approved, evaluate for product inclusion
      • [ ] If implemented upstream, consider backport or include in next version

      Technical Notes:

      The cleanup logic already exists in PurgeFinalizerAndDeletePVCForWorkspace() used by alpha modes. The proposal just needs to call it conditionally for workspaces mode based on annotation presence.

              Unassigned Unassigned
              vdemeest Vincent Demeester
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: