Skip to content

feat: Pvc auto deletion logic#1514

Draft
Alexj9837 wants to merge 11 commits intomainfrom
pvc-auto-deletion-logic
Draft

feat: Pvc auto deletion logic#1514
Alexj9837 wants to merge 11 commits intomainfrom
pvc-auto-deletion-logic

Conversation

@Alexj9837
Copy link
Copy Markdown

Adds a new autodeletion cronjob that automattically deletes stale PVSs based on the last-used annotation, written by the time-stamper cronjob.

how it works:

  • Deletion bash script iterates over all the PVCs
  • If a PVC has a last-used older than 3 months it gets deleted
  • Unless it has the annotation of protected = true

@Alexj9837 Alexj9837 changed the title Pvc auto deletion logic feat: Pvc auto deletion logic Apr 24, 2026
@Alexj9837 Alexj9837 force-pushed the pvc-auto-deletion-logic branch from 61215cd to 3e8f562 Compare April 24, 2026 15:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.30%. Comparing base (65b7e75) to head (45cdbf3).
⚠️ Report is 26 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1514      +/-   ##
==========================================
+ Coverage   95.21%   95.30%   +0.09%     
==========================================
  Files          43       43              
  Lines        3132     3198      +66     
==========================================
+ Hits         2982     3048      +66     
  Misses        150      150              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alexj9837 Alexj9837 force-pushed the pvc-auto-deletion-logic branch from e6c0bd3 to 49e12f9 Compare April 27, 2026 15:20
@Alexj9837 Alexj9837 force-pushed the pvc-auto-deletion-logic branch from 49e12f9 to 45cdbf3 Compare April 27, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant