{"id":19044433,"url":"https://github.com/tilt-dev/uselessoperator","last_synced_at":"2026-03-05T09:02:04.579Z","repository":{"id":105914934,"uuid":"271686399","full_name":"tilt-dev/uselessoperator","owner":"tilt-dev","description":"A Useless Machine As A Kubernetes Operator","archived":false,"fork":false,"pushed_at":"2023-02-06T23:48:56.000Z","size":30096,"stargazers_count":22,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-06T13:06:18.554Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilt-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-06-12T02:03:07.000Z","updated_at":"2024-05-21T12:51:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"62b659e4-76d5-45a2-b7a6-f272e0cc63e8","html_url":"https://github.com/tilt-dev/uselessoperator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tilt-dev/uselessoperator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fuselessoperator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fuselessoperator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fuselessoperator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fuselessoperator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilt-dev","download_url":"https://codeload.github.com/tilt-dev/uselessoperator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fuselessoperator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-08T22:46:19.076Z","updated_at":"2026-03-05T09:02:04.414Z","avatar_url":"https://github.com/tilt-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Useless Machine Operator\n\nThis is meant to replicate a useless machine (see YouTube) as a Kubernetes\noperator. It's meant to show how to use KubeBuilder to:\n\n- Create a CRD\n- Create a controller\n- Get and set fields in a resource\n- Get, create, and delete resources\n- Use a controller to watch a different resource type\n\nIn practice, here's what it does:\n\n1. A machine resource can have three types: useful, useless, or playful\n2. A useful machine is allowed to exist\n3. A useless machine gets immediately deleted\n4. A playful machine goes towards the off switch, comes back, goes\n   again (etc.) until it finally turns itself off\n    - Watch its status with `watch -n0.5 kubectl get machine`\n\nTo run it, install [Tilt](https://tilt.dev/) and `tilt up`.\n\nRelevant links:\n\n- [Best practices for building Kubernetes Operators and stateful\n  apps](https://cloud.google.com/blog/products/containers-kubernetes/best-practices-for-building-kubernetes-operators-and-stateful-apps)\n- [KubeBuilder](https://github.com/kubernetes-sigs/kubebuilder)\n- Useless machine videos: [here](https://www.youtube.com/watch?v=aqAUmgE3WyM)\n  and [here](https://www.youtube.com/watch?v=kproPsch7i0)\n- [Tilt](https://tilt.dev/)\n- [Printer Columns](https://book.kubebuilder.io/reference/generating-crd.html) for KubeBuilder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilt-dev%2Fuselessoperator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilt-dev%2Fuselessoperator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilt-dev%2Fuselessoperator/lists"}