{"id":19797731,"url":"https://github.com/viveksyngh/kube-sync","last_synced_at":"2025-05-01T03:32:00.298Z","repository":{"id":47234727,"uuid":"399208029","full_name":"viveksyngh/kube-sync","owner":"viveksyngh","description":"A CLI to sync configmaps and secrets in a kubernetes cluster","archived":false,"fork":false,"pushed_at":"2022-10-15T11:52:59.000Z","size":3701,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-19T11:37:38.251Z","etag":null,"topics":["cli","hacktoberfest","kubernetes"],"latest_commit_sha":null,"homepage":"","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/viveksyngh.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}},"created_at":"2021-08-23T18:21:44.000Z","updated_at":"2023-05-22T04:15:34.000Z","dependencies_parsed_at":"2022-09-03T11:31:49.295Z","dependency_job_id":null,"html_url":"https://github.com/viveksyngh/kube-sync","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viveksyngh%2Fkube-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viveksyngh%2Fkube-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viveksyngh%2Fkube-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viveksyngh%2Fkube-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viveksyngh","download_url":"https://codeload.github.com/viveksyngh/kube-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224234055,"owners_count":17277892,"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":["cli","hacktoberfest","kubernetes"],"created_at":"2024-11-12T07:26:26.795Z","updated_at":"2024-11-12T07:26:30.549Z","avatar_url":"https://github.com/viveksyngh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kube-sync\nKube Sync is a CLI application to copy/sync ConfigMaps and secrets from one namespace to another.\n\n# Motivation\n\nWhile working with Kubernetes, all of us might have encountered a situation where applications deployed in a new namespace were failing because of missing image pull secret, which we forgot to create in the new namespace. This tool helps us in copying such secrets or ConfigMaps from an already existing namespace to a new namespace.\n\n# Installation\n\nStable binaries are also available on the [releases](https://github.com/viveksyngh/kube-sync/releases) page. Stable releases are generally recommended for CI usage in particular. To install, download the binary for your platform from \"Assets\" and place this into your $PATH:\n\n## For Linux:\n```\ncurl -Lo ./kube-sync https://github.com/viveksyngh/kube-sync/releases/download/v0.1.0/kube-sync-$(uname)-amd64\nchmod +x ./kube-sync\nmv ./kube-sync /usr/local/bin/kube-sync\n```\n\n## On macOS via Bash:\n```\ncurl -Lo ./kube-sync https://github.com/viveksyngh/kube-sync/releases/download/v0.1.0/kube-sync-darwin-amd64\nchmod +x ./kube-sync\nmv ./kube-sync /usr/local/bin/kube-sync\n```\n## On Windows:\n```\ncurl.exe -Lo kube-sync-windows-amd64.exe https://github.com/viveksyngh/kube-sync/releases/download/v0.1.0/kube-sync-windows-amd64\nMove-Item .\\kube-sync-windows-amd64.exe  c:\\some-dir-in-your-PATH\\kube-sync-windows-amd64.exe \n```\n# Usage\n\n```\nNAME:\n   kube-sync - A CLI to sync kubernetes resources\n\nUSAGE:\n   kube-sync [global options] command [command options] [arguments...]\n\nDESCRIPTION:\n   A CLI to sync resources in a kubernetes cluster\n\nCOMMANDS:\n   configmap, cm  Copy a configmap from one namespace to another\n   secret, sec    Copy a secret from one namespace to another\n   version, v     print version\n   help, h        Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --kubeconfig value                    path to the kubeconfig file to use for CLI requests (default: \"~/.kube/config\") [$KUBECONFIG]\n   --namespace value, -n value           namespace of the source resource (default: \"default\")\n   --target-namespace value, --tn value  target namespace in which resource will be copied (default: \"default\")\n   --help, -h                            show help (default: false)\n```\n\n### Sync/Copy a configmap\n\n```\nkube-sync configmap --help\nNAME:\n   kube-sync configmap - Copy a configmap from one namespace to another\n\nUSAGE:\n   kube-sync configmap [command options] NAME\n\nOPTIONS:\n   --help, -h  show help (default: false)\n```\n\n```\nkube-sync --namespace source-ns --target-namespace target-ns configmap configmap-name\n\nkube-sync --namespace source-ns --target-namespace target-ns cm configmap-name\n```\n\n### Sync/Copy a secret\n```\nkube-sync secret --help\nNAME:\n   kube-sync secret - Copy a secret from one namespace to another\n\nUSAGE:\n   kube-sync secret [command options] NAME\n\nOPTIONS:\n   --help, -h  show help (default: false)\n```\n\n```\nkube-sync --namespace source-ns --target-namespace target-ns secret secret-name\n\nkube-sync --namespace source-ns --target-namespace target-ns sec secret-name\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviveksyngh%2Fkube-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviveksyngh%2Fkube-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviveksyngh%2Fkube-sync/lists"}