{"id":13709768,"url":"https://github.com/RossyWhite/konmari","last_synced_at":"2025-05-06T18:32:42.406Z","repository":{"id":52783292,"uuid":"241622154","full_name":"RossyWhite/konmari","owner":"RossyWhite","description":"🧹Tidy up ConfigMaps and Secrets that don't spark joy ⚡","archived":false,"fork":false,"pushed_at":"2023-02-12T13:51:41.000Z","size":33,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T07:13:01.299Z","etag":null,"topics":["configmap","go","k8s"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RossyWhite.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-19T12:57:51.000Z","updated_at":"2023-03-30T06:29:57.000Z","dependencies_parsed_at":"2024-06-20T21:52:52.298Z","dependency_job_id":"3698ea49-f181-4a0f-a813-eb86738e6d17","html_url":"https://github.com/RossyWhite/konmari","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"d0fd6995c2994588d104b52dc9f50b91e4bbdda4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RossyWhite%2Fkonmari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RossyWhite%2Fkonmari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RossyWhite%2Fkonmari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RossyWhite%2Fkonmari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RossyWhite","download_url":"https://codeload.github.com/RossyWhite/konmari/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252744687,"owners_count":21797664,"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":["configmap","go","k8s"],"created_at":"2024-08-02T23:00:45.746Z","updated_at":"2025-05-06T18:32:41.992Z","avatar_url":"https://github.com/RossyWhite.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# konmari 🧹\n\n`konmari` is a garbage collector to delete `ConfigMaps` and `Secrets` that are no longer referenced by Pods.\n\n## Running as a CronJob\n\n`konmari` can be run as a job or cronjob inside of a pod. \nWhen it runs, it deletes `ConfigMaps` or `Secrets` that are created before the period of time specified by `deletePeriod`, and are not referenced by any pod.\n\n※ Only `Opaque` type of `Secrets` are subject to delete.\n\n### Setup RBAC\n\n```bash\n$ kuectl create -f kubernetes/rbac.yaml\n```\n\n### Create a CronJob\n\n```bash\n$ kuectl create -f kubernetes/cronjob.yaml\n```\n\n## Command line flags\n\n| Flag | Description | Default |\n| :--- | :--- | :--- |\n| `namespace` | Namespace in which konmari run. | `default` |\n| `deletePeriod` | Period to judge as old Object. | `30days` |\n| `kubeconfig` | Path to kubeconfig file with authorization. | `\"\"` |\n| `dryrun` | Whether or not to actually delete Objects. | `false` |\n| `disableSecrets` | Whether or not to ignore `Secrets`. | `false` |\n| `disableConfigMaps` | Whether or not to ignore `ConfigMaps`. | `false` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRossyWhite%2Fkonmari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRossyWhite%2Fkonmari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRossyWhite%2Fkonmari/lists"}