{"id":18733921,"url":"https://github.com/mgoltzsche/pvc-remover","last_synced_at":"2025-07-07T06:07:58.037Z","repository":{"id":57563110,"uuid":"297442097","full_name":"mgoltzsche/pvc-remover","owner":"mgoltzsche","description":"Kubernetes controllers to remove particular PVCs on Pod completion","archived":false,"fork":false,"pushed_at":"2020-09-22T22:19:13.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T15:49:39.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgoltzsche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-21T19:35:04.000Z","updated_at":"2020-09-22T22:19:10.000Z","dependencies_parsed_at":"2022-08-31T05:10:56.680Z","dependency_job_id":null,"html_url":"https://github.com/mgoltzsche/pvc-remover","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fpvc-remover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fpvc-remover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fpvc-remover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgoltzsche%2Fpvc-remover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgoltzsche","download_url":"https://codeload.github.com/mgoltzsche/pvc-remover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605079,"owners_count":19667004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:11:48.260Z","updated_at":"2025-02-19T06:16:51.507Z","avatar_url":"https://github.com/mgoltzsche.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pvc-remover\n\nKubernetes controllers to remove a `PersistentVolumeClaim` (PVC) of a particular\n`StorageClass` when an associated `Pod` is completed.  \n\nThis project's primary purpose is the early deletion of volumes provisioned by\n[cache-provisioner](https://github.com/mgoltzsche/cache-provisioner) so that the\nvolume contents can be committed and quickly reused for the next (build) job.  \n\n## How it works\n\nThe *Pod controller* annotates and deletes matching PVCs (`storageClassName`, `accessMode=ReadWriteOnce`)\nthat are associated with a matching, completed Pod (`annotations`?, `labels`?, `status.phase=Succeeded`, `restartPolicy=Never`).  \nThe *PVC controller* removes the finalizer `kubernetes.io/pvc-protection` from PVCs\nthat have a deletion timestamp and the annotation `pvc-remover.mgoltzsche.github.com/no-pvc-protection`\nallowing unsafe deletion while still referenced by Pods.\n\n## Build\n\n```\nmake\n```\n\n## Test\n\nRun controller tests:\n```\nmake test\n```\n\nTest interactively against a real cluster:\n```\nmake manager\n./bin/manager --storage-class=\u003cyour-ephemeral-storage-class-name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgoltzsche%2Fpvc-remover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgoltzsche%2Fpvc-remover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgoltzsche%2Fpvc-remover/lists"}