rdev/deployments/k8s
jordan f8554a5e6f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix(ci): prevent Woodpecker PVC false failures
Woodpecker's K8s backend creates a PVC per pipeline for workspace sharing.
If the agent misses cleanup, stale PVCs cause "already exists" errors that
mark pipelines as failed despite all steps succeeding.

Two-part fix:
1. Scale woodpecker-agent from 2 to 1 replica (eliminates PVC name race
   between agents processing the same repo)
2. Add CronJob that garbage-collects wp-* PVCs older than 30 minutes
   every 5 minutes (handles crash/restart edge cases)

Includes dedicated ServiceAccount and least-privilege RBAC (PVC list/delete
only in threesix namespace).

Ref: https://github.com/woodpecker-ci/woodpecker/issues/1594

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 22:00:03 -07:00
..
base fix(ci): prevent Woodpecker PVC false failures 2026-02-10 22:00:03 -07:00