{"id":22296692,"url":"https://github.com/akankshakumari393/sync-env","last_synced_at":"2026-05-03T19:33:44.290Z","repository":{"id":122907114,"uuid":"487196442","full_name":"akankshakumari393/sync-env","owner":"akankshakumari393","description":"kubernetes controller that sync configMap with Deployment in the default namespace","archived":false,"fork":false,"pushed_at":"2022-10-01T15:42:00.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T22:41:21.508Z","etag":null,"topics":["dockerfile","golang","kubernetes"],"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/akankshakumari393.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":"2022-04-30T06:03:47.000Z","updated_at":"2022-05-03T04:21:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3a1e011-e4a1-4be2-b035-6b4b9bc9b4f0","html_url":"https://github.com/akankshakumari393/sync-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akankshakumari393/sync-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akankshakumari393%2Fsync-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akankshakumari393%2Fsync-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akankshakumari393%2Fsync-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akankshakumari393%2Fsync-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akankshakumari393","download_url":"https://codeload.github.com/akankshakumari393/sync-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akankshakumari393%2Fsync-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32582779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["dockerfile","golang","kubernetes"],"created_at":"2024-12-03T17:47:18.492Z","updated_at":"2026-05-03T19:33:44.273Z","avatar_url":"https://github.com/akankshakumari393.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sync-env\n\n## Kubernetes Custom Controller\n\nThis controller updates a deployment env with ConfigMap reference whenever the configMap is created in the `default` namespace.  \n\n## On Local Environment\n\n### build the binary\n\n```\ngo build\n```\n\n### Execute the binary\n\n```\n./sync-env\n```\n\n## On K8S Cluster\n\n### Build the controller image and push to docker registry \n```\ndocker build -t akankshakumari393/sync-env:0.0.1 .\ndocker push akankshakumari393/sync-env:0.0.1\n```\n\n### create a namespace in which controller would run\n\n```\nkubectl create namespace sync-env\n```\n\n### Create Role in default namespace to give permission for configmaps, deployments \n\n```\nkubectl create role default-role --verb=update,get,list,watch --resource=deployments,configmaps\n# kubectl create -f k8s-resources/role.yaml\n```\n\n### Create RoleBindings in default namespace to give access to Service account mapped with controller \n\n```\nkubectl create rolebinding default-role-binding --role=default-role --user=system:serviceaccount:sync-env:default\n# kubectl create -f k8s-resources/rolebinding.yaml\n```\n\nCreate deployment\nkubectl create -f k8s-resources/deployment.yaml -n sync-env\n\n### Now any configmap added to default namespace would be added to env of the deployment \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakankshakumari393%2Fsync-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakankshakumari393%2Fsync-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakankshakumari393%2Fsync-env/lists"}