{"id":20607720,"url":"https://github.com/open-feature/watchman","last_synced_at":"2025-04-15T04:02:20.651Z","repository":{"id":59478282,"uuid":"522274383","full_name":"open-feature/watchman","owner":"open-feature","description":"A Kubernetes admission controller driven by open-feature","archived":false,"fork":false,"pushed_at":"2023-04-03T16:19:25.000Z","size":2536,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T15:46:06.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openfeature.dev","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/open-feature.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":"2022-08-07T17:07:44.000Z","updated_at":"2025-02-19T00:49:29.000Z","dependencies_parsed_at":"2024-06-21T17:49:19.229Z","dependency_job_id":"fb19dad5-04ec-48b9-af11-0c3152f2d278","html_url":"https://github.com/open-feature/watchman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fwatchman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fwatchman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fwatchman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fwatchman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-feature","download_url":"https://codeload.github.com/open-feature/watchman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003952,"owners_count":21196793,"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-16T10:08:25.555Z","updated_at":"2025-04-15T04:02:20.613Z","avatar_url":"https://github.com/open-feature.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# watchman\n\n![goversion](https://img.shields.io/github/go-mod/go-version/open-feature/watchman/main)\n![version](https://img.shields.io/badge/version-pre--alpha-green)\n![licence](https://img.shields.io/github/license/open-feature/watchman)\n![size](https://img.shields.io/github/repo-size/open-feature/watchman)\n\n\u003cimg src=\"images/doggo.jpeg\" width=\"250px;\" /\u003e\n\nA general purpose admission controller that uses open-feature to control it's capabilities.\n\nThis is a demonstration project that is designed to familiarise the user with how open-feature can be used within Kubernetes to control infrastructure. \n\nThis project demonstrates:\n\n- [open-feature golang SDK](https://github.com/open-feature/golang-sdk)\n- [flagD](https://github.com/open-feature/flagd)\n- [open-feature operator](https://github.com/open-feature/open-feature-operator)\n\n_But how does it work?_\n\n\u003cimg src=\"images/003.png\" width=\"850px;\"\u003e\n\n## Run the demo\n\n- Setup a Kubernetes cluster\n- Install open-feature-operator as described [here](https://github.com/open-feature/open-feature-operator#deploy-the-latest-release)\n- `kubectl create namespace watchman-system`\n- `kubectl create -f config/samples/flags.yaml`\n- `kubectl create -f config/webhook/certificate.yaml`\n- `IMG=cnskunkworks/watchman:0.0.3 make deploy`\n\nYou should see that you have watchman injected with flagd.\n\n\u003cimg src=\"images/001.png\" width=\"450px;\"\u003e\n\nThis now means you can turn on or off pod admission with the watchman `FeatureFlagConfiguration` custom resource named `watchman-flags/watchman-system`\n\n\u003cimg src=\"images/002.png\" width=\"450px;\"\u003e\n\nThe end result should be that you can turn on or off the admission controller with the `FeatureFlagConfiguration` custom resource.\n\n```\n❯ kubectl apply -f config/samples/pod.yaml\nError from server (flag set to block admission): error when creating \"config/samples/pod.yaml\": admission webhook \"mutate-demo.openfeature.dev\" denied the request: flag set to block admission\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-feature%2Fwatchman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-feature%2Fwatchman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-feature%2Fwatchman/lists"}