{"id":18295976,"url":"https://github.com/petergrace/ndots-webhook","last_synced_at":"2025-08-23T20:04:36.831Z","repository":{"id":145479073,"uuid":"315662582","full_name":"PeterGrace/ndots-webhook","owner":"PeterGrace","description":"An admission controller webhook to set ndots on pods by annotation","archived":false,"fork":false,"pushed_at":"2020-11-28T02:45:19.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T08:44:45.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/PeterGrace.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}},"created_at":"2020-11-24T14:47:48.000Z","updated_at":"2020-11-28T02:45:23.000Z","dependencies_parsed_at":"2023-05-24T09:30:38.447Z","dependency_job_id":null,"html_url":"https://github.com/PeterGrace/ndots-webhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PeterGrace/ndots-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fndots-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fndots-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fndots-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fndots-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterGrace","download_url":"https://codeload.github.com/PeterGrace/ndots-webhook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fndots-webhook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271767965,"owners_count":24817589,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-11-05T14:39:02.212Z","updated_at":"2025-08-23T20:04:36.753Z","avatar_url":"https://github.com/PeterGrace.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ndots-webhook\n[![Build Status](https://drone.k.vsix.me/api/badges/support/ndots-webhook/status.svg?ref=refs/heads/main)](https://drone.k.vsix.me/support/ndots-webhook)\nI'm working on a MutatingWebhook for Kubernetes that will allow me to alter DNSOptions `ndots` for any pod in the system based on annotation.\n\nThe reason why I'm writing this is because helm charts and operators often don't include dnsconfig options in their specifications, but they generally\nallow the pass-through of annotations into pods, which will allow me to dynamically change the pod spec via MutatingWebhook to facilitate this fix.\n\n\n## How to install\nThe files in the repo assume you're installing the service to ndots-webhook, namespace ndots-webhook.  If you don't want this, you'll need to edit the files in deploy/ to coincide with the changes.  No helm charts here yet, but I may create some in the future.\n\n  1. Clone this repo.\n  1. Create a new webhook tls key pair.\n```\nservice=\u003cmy-service-name\u003e namespace=\u003cmy-namespace-name\u003e secret=\u003cwhat-to-name-secret\u003e ./deploy/webhook-create-signed-cert.sh\ne.g.\nservice=ndots-webhook namespace=ndots-webhook secret=ndots-webhook ./deploy/webhook-create-signed-cert.sh\n```\n  1. Copy the cert.pem payload out of that secret and put it into ./deploy/mutating_webhook.yaml under caBundle.\n  1. `kubectl apply -k ` in the deploy/ folder\n\nNOTE: I use pod security policies in my kubernetes cluster.  The psp object might not apply.  Just delete it if you don't need it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetergrace%2Fndots-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetergrace%2Fndots-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetergrace%2Fndots-webhook/lists"}