{"id":16845081,"url":"https://github.com/phenixblue/volrec","last_synced_at":"2026-05-11T16:37:07.413Z","repository":{"id":64303555,"uuid":"334324241","full_name":"phenixblue/volrec","owner":"phenixblue","description":"Kubernetes Volume Reclaim Controller","archived":false,"fork":false,"pushed_at":"2021-07-11T20:13:51.000Z","size":27873,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T06:29:48.045Z","etag":null,"topics":["controller","core","k8s","kubebuilder","kubernetes","pv","pvc","reclaim","volrec","volume"],"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/phenixblue.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":"2021-01-30T04:05:58.000Z","updated_at":"2021-10-26T21:25:13.000Z","dependencies_parsed_at":"2023-01-15T10:01:03.065Z","dependency_job_id":null,"html_url":"https://github.com/phenixblue/volrec","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phenixblue/volrec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fvolrec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fvolrec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fvolrec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fvolrec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phenixblue","download_url":"https://codeload.github.com/phenixblue/volrec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fvolrec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["controller","core","k8s","kubebuilder","kubernetes","pv","pvc","reclaim","volrec","volume"],"created_at":"2024-10-13T12:57:35.225Z","updated_at":"2026-05-11T16:37:07.393Z","avatar_url":"https://github.com/phenixblue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# volrec\n\n`Vol`ume `Re`claim `C`ontroller, or `volrec` for short, is a Kubernetes Controller that allows for empowering Developers with the ability to control the Reclaim Policy on their persistent volumes without providing them with cluster scoped permissions.\n\n**NOTE: While this project does work, this was a quick experiment, it's not polished, and you probably shouldn't run this in production!**\n\n## Overview\n\n`volrec` contains a set of controllers operating under a single Controller Manager.\n\n- PersistentVolume Controller\n- PersistentVolumeClaim Controller\n- Namespace Controller\n\nEach is responsible for handling reconciliation actions for a given target resource.\n\nThe mapping relationship between a namespace scoped PVC bound to a cluster scoped PV provides the relationship to enable end-users to control the Reclaim Policy for their volumes through the application of labels on the PVC resource the user has access to.\n\nAdd the `storage.k8s.twr.dev/reclaim-policy` label with a valid Reclaim Policy for the value (ie. `Retain`, `Recycle`, or `Delete`) to a PVC within your namespace and `volrec` will follow the mapping to the appropriate PV and set the Reclaim Policy according to the value of the label. ~~A validating Admission Controller is setup to make sure only supported values for the Volume Reclaim policy can be set within the label.~~\n\n## Configuration\n\n`volrec` can be configured via flags/arguments passed at startup.\n\n |Flag              | Type      |    Default Value     |     Description   |\n|---                |---        |---                   |---                |\n| --metrics-addr    | string    | \":8081\"              | The address the metric endpoint binds to.|\n| --enable-leader-election      | bool  | false  | Enable leader election for controller manager to ensure there is only one active controller manager. |\n| --reclaim-label   | string    | \"storage.k8s.twr.dev/reclaim-policy\"  | The label to use for tracking Persistent Volume reclaim policy.|\n| --set-owner       | bool      | false | Toggle whether or not owner information from a given namespace is transferred to the Persistent Volume.|\n| --owner-label     | string    | \"k8s.twr.dev/owner\"  | The Label to use to set owner information on a Persistent Volume.|\n| --set-ns          | bool      | false | Toggle whether or not to add a label mapping Persistent Volumes back to a namespace.|\n| --ns-label        | string    | \"k8s.twr.dev/owning-namespace\"    | The label to use for identifying an owning namespace on a Persistent Volume.|\n\n## Installation\n\n```shell\n$ make deploy\n```\n\n## Troubleshooting\n\n## Contributing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenixblue%2Fvolrec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenixblue%2Fvolrec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenixblue%2Fvolrec/lists"}