{"id":22020479,"url":"https://github.com/noahingh/sweeper","last_synced_at":"2026-04-16T11:35:48.550Z","repository":{"id":57534956,"uuid":"277261326","full_name":"noahingh/sweeper","owner":"noahingh","description":"Sweeper is a tool to support developers organize the emphemeral environment on Kubernetes.","archived":false,"fork":false,"pushed_at":"2020-07-28T17:21:10.000Z","size":298,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T16:38:55.361Z","etag":null,"topics":["emphemeral","k8s","kubernetes"],"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/noahingh.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-07-05T08:30:40.000Z","updated_at":"2020-07-29T03:09:24.000Z","dependencies_parsed_at":"2022-09-26T18:21:48.934Z","dependency_job_id":null,"html_url":"https://github.com/noahingh/sweeper","commit_stats":null,"previous_names":["noahingh/sweeper","hanjunlee/sweeper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fsweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fsweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fsweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fsweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahingh","download_url":"https://codeload.github.com/noahingh/sweeper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245084624,"owners_count":20558251,"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":["emphemeral","k8s","kubernetes"],"created_at":"2024-11-30T06:06:37.936Z","updated_at":"2026-04-16T11:35:43.532Z","avatar_url":"https://github.com/noahingh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![sweeper](./docs/img/sweeper.jpeg)\n\n# Sweeper\n\n[![GoDoc](https://godoc.org/github.com/hanjunlee/sweeper?status.svg)](https://pkg.go.dev/github.com/hanjunlee/sweeper)\n\n---\n\nSweeper is a tool to support developers organize the emphemeral environment on Kubernetes.\n\n## Concept\n\nIn many compnies, the environment of development is organized with the static environment, for example, we might have the following environment: `dev`, `staging`, `prod`. But as the time goes the static environment has [some issues](https://pipelinedriven.org/article/the-four-biggest-issues-with-having-static-environments). To cover these issues, the **ephemeral environment** could be one of solutions.  \n\nThe emphemeral envrionment contains two extra actions: one at the beginning, and one at the end, that spin up an environment for a purpose, and spin down an environment at the end. Sweeper is contained in the spin-down step, It cleans up selected resources after the TTL time. For example, if you apply a `deployment` and a `service`, which is kubernetes resource, the sweeper will delete resources which is labeled after the ttl time you defined.\n\n## Installation\n\n1. Create the kubernetes CRD.\n\n```shell\n$ kustomize build config/crd | kubectl apply -f - \n\n$ kubectl api-resources | grep sweeper\nkubernetes   selector.sweeper.io   true   Kubernetes\n...\n```\n\n2. Install the controller.\n\n```shell\n$ kustomize build config/manager | kubectl apply -f  -\n```\n\n## Usage\n\n### Kubernetes \n\nThe `kubernetes` resource is active in the namespace which has the label `sweeper.io/enabled=true`. You should set the label the namespace which you want to activate like below.\n\n```shell\n$ kubectl label ns sweeper sweeper.io/enabled=true --overwrite\n```\n\nCreate the `kubernetes` manifest on the namespace. You reference the sample directory(in `./config/samples`) and also you can read [godoc]().\n\n## Contribute\n\nTBD\n\n## License\n\nTBD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahingh%2Fsweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahingh%2Fsweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahingh%2Fsweeper/lists"}