{"id":32714876,"url":"https://github.com/rajamohan-rj/kdiff","last_synced_at":"2026-04-10T22:38:20.792Z","repository":{"id":317805719,"uuid":"1068917241","full_name":"rajamohan-rj/kdiff","owner":"rajamohan-rj","description":"🔍 Kubernetes Resource Differ - Compare K8s resources between namespaces with colored diff output, kubectl neat integration, and multiple format support. Essential DevOps tool for environment comparison and debugging.","archived":false,"fork":false,"pushed_at":"2025-10-03T08:59:27.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-10T22:38:13.920Z","etag":null,"topics":["automation","ci-cd","devops-tools","diff","difference","environment-comparison","git","golang","k8s","kubectl","kubectl-plugins","kuberentes","mono-repo","multi-platform","yaml-diff"],"latest_commit_sha":null,"homepage":"https://github.com/rajamohan-rj/kdiff/releases","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/rajamohan-rj.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-03T05:40:39.000Z","updated_at":"2025-10-03T08:58:44.000Z","dependencies_parsed_at":"2025-10-03T07:09:50.398Z","dependency_job_id":"39aca274-de64-46ce-bcc4-f8abc9487c52","html_url":"https://github.com/rajamohan-rj/kdiff","commit_stats":null,"previous_names":["rajamohan-rj/kdiff"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rajamohan-rj/kdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajamohan-rj%2Fkdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajamohan-rj%2Fkdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajamohan-rj%2Fkdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajamohan-rj%2Fkdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajamohan-rj","download_url":"https://codeload.github.com/rajamohan-rj/kdiff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajamohan-rj%2Fkdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31662169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"ssl_error","status_checked_at":"2026-04-10T17:19:13.364Z","response_time":98,"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":["automation","ci-cd","devops-tools","diff","difference","environment-comparison","git","golang","k8s","kubectl","kubectl-plugins","kuberentes","mono-repo","multi-platform","yaml-diff"],"created_at":"2025-11-02T13:00:49.366Z","updated_at":"2026-04-10T22:38:20.780Z","avatar_url":"https://github.com/rajamohan-rj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kdiff - Kubernetes Resource Differ\n\nA tool to compare Kubernetes resources between different namespaces, making it easy to spot differences across environments.\n\n## Features\n\n- 🔍 Compare Kubernetes resources between any two namespaces\n- 🎨 Colored diff output for better readability\n- 🧹 Optional `kubectl neat` integration to clean output\n- 📊 Multiple output formats (unified, context, side-by-side)\n- 🔧 Support for all Kubernetes resource types\n- 📝 Verbose logging for debugging\n\n## Installation\n\n### 🚀 Quick Install (Recommended)\n\n#### Unix/Linux/macOS\n```bash\ncurl -sSL https://raw.githubusercontent.com/rajamohan-rj/kdiff/main/install.sh | bash\n```\n\n#### Windows (PowerShell)\n```powershell\niwr -useb https://raw.githubusercontent.com/rajamohan-rj/kdiff/main/install.ps1 | iex\n```\n\n### 📦 Package Managers\n\n#### Using Go\n```bash\ngo install github.com/rajamohan-rj/kdiff@latest\n```\n\n#### Using Homebrew (macOS/Linux)\n```bash\n# Add the tap (after setting up Homebrew tap)\nbrew tap rajamohan-rj/tap\nbrew install kdiff\n```\n\n### 🛠️ Advanced Installation\n\n#### Install to custom directory\n```bash\n# Unix/Linux/macOS\ncurl -sSL https://raw.githubusercontent.com/rajamohan-rj/kdiff/main/install.sh | bash -s -- --dir ~/.local/bin\n\n# Windows\niwr -useb https://raw.githubusercontent.com/rajamohan-rj/kdiff/main/install.ps1 | iex -InstallDir 'C:\\tools'\n```\n\n#### Install specific version\n```bash\n# Unix/Linux/macOS\ncurl -sSL https://raw.githubusercontent.com/rajamohan-rj/kdiff/main/install.sh | bash -s -- --version v0.1.0\n\n# Windows\niwr -useb https://raw.githubusercontent.com/rajamohan-rj/kdiff/main/install.ps1 | iex -Version 'v0.1.0'\n```\n\n### 📥 Manual Download\n\nDownload the latest binary from [releases](https://github.com/rajamohan-rj/kdiff/releases) and extract.\n\n## Usage\n\n```bash\n# Compare deployments between staging and production\nkdiff staging my-app production my-app\n\n# Compare services with verbose output\nkdiff --verbose dev my-service prod my-service\n\n# Compare without colored output\nkdiff --no-color namespace1 deployment/app namespace2 deployment/app\n\n# Use context diff format\nkdiff --output context ns1 svc/api ns2 svc/api\n\n# Compare with side-by-side format and skip kubectl neat\nkdiff --output side-by-side --no-neat ns1 pod/web ns2 pod/web\n```\n\n## Options\n\n- `--no-color` - Disable colored output\n- `--no-neat` - Skip kubectl neat processing  \n- `--output` - Output format (unified, context, side-by-side)\n- `--verbose` - Enable verbose logging\n- `--version` - Show version information\n\n## Prerequisites\n\n- `kubectl` command-line tool\n- `kubectl neat` plugin (optional, for cleaner YAML output)\n- `colordiff` (optional, for colored output)\n\n## How it works\n\n1. Retrieves the specified resource from the first namespace using `kubectl get`\n2. Retrieves the specified resource from the second namespace\n3. Optionally processes the YAML through `kubectl neat` to remove cluster-specific metadata\n4. Performs a diff between the two YAML files\n5. Optionally colorizes the output using `colordiff`\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajamohan-rj%2Fkdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajamohan-rj%2Fkdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajamohan-rj%2Fkdiff/lists"}