{"id":29182494,"url":"https://github.com/berquerant/k8s-object-diff-go","last_synced_at":"2026-02-22T15:15:39.101Z","repository":{"id":302175490,"uuid":"1011133666","full_name":"berquerant/k8s-object-diff-go","owner":"berquerant","description":"k8s object diff by object id","archived":false,"fork":false,"pushed_at":"2026-01-16T16:06:50.000Z","size":188,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-17T05:12:17.184Z","etag":null,"topics":["diff","go","kubernetes","yaml"],"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/berquerant.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":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-30T10:58:32.000Z","updated_at":"2025-12-27T14:41:17.000Z","dependencies_parsed_at":"2025-07-01T01:20:46.841Z","dependency_job_id":"c18920eb-a9f3-49b5-a503-8f1cc549f1ef","html_url":"https://github.com/berquerant/k8s-object-diff-go","commit_stats":null,"previous_names":["berquerant/k8s-object-diff-go"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/berquerant/k8s-object-diff-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fk8s-object-diff-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fk8s-object-diff-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fk8s-object-diff-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fk8s-object-diff-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berquerant","download_url":"https://codeload.github.com/berquerant/k8s-object-diff-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fk8s-object-diff-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28745836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["diff","go","kubernetes","yaml"],"created_at":"2025-07-01T20:06:36.028Z","updated_at":"2026-02-22T15:15:39.076Z","avatar_url":"https://github.com/berquerant.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/berquerant/k8s-object-diff-go)](https://goreportcard.com/report/github.com/berquerant/k8s-object-diff-go)\n\n# k8s-object-diff-go\n\n```\n❯ objdiff --help\nobjdiff - k8s object diff by object id\n\n# Usage\n\n  objdiff [flags] LEFT_FILE RIGHT_FILE\n\n# Object ID\n\nA unique ID for a k8s object.\ne.g.\n\n  apiVersion: v1\n  kind: Pod\n  metadata:\n    name: nginx\n    namespace: default\n\nthen id is 'v1\u003ePod\u003edefault\u003enginx'.\n\n# Output format\n## idlist\n\nAll object IDs.\n\n## id\n\nID diff.\n\n## text\n\nUnified diff.\n\n## yaml\n\nArray of\n\n  id: \"Object ID\"\n  diff: \"Unified diff\"\n  left: \"Left object (optional)\"\n  right: \"Right object (optional)\"\n  type: \"Diff type (add or change or destroy)\"\n\n# Exit status\n\n0 if inputs are the same.\n1 if inputs differ.\nOtherwise 2.\n\n# Override differ\n\n  objdiff -x diff left.yml right.yml\ninvokes\n  diff --unified=3 --color=never --label left.yml --label right.yml LEFT_FILE RIGHT_FILE\n\n  DIFFCMD='diff' objdiff -c -C 5 left.yml right.yml\ninvokes\n  diff --unified=5 --color=always --label left.yml --label right.yml LEFT_FILE RIGHT_FILE\n\n# Flags\n      --allowDuplicateKey   allow the use of keys with the same name in the same map (default true)\n  -c, --color               colored diff\n  -C, --context int         diff context (default 3)\n      --debug               enable debug log\n  -x, --diffCmd string      invoke this to get diff instead of builtin differ\n  -n, --indent int          yaml indent (default 2)\n  -L, --label strings       use label instead of file name\n  -o, --out string          output format: text,yaml,id,idlist (default \"text\")\n  -q, --quiet               quiet log\n  -d, --separator string    object id separator (default \"\u003e\")\n      --success             exit with 0 even if inputs differ\n  -v, --verbose             enable verbose output; annotate diff type and display summary\n      --version             print objdiff version\n```\n\n## Example\n\nFor [left.yml](./tests/diffs/left.yml) and [right.yml](./tests/diffs/right.yml), executing\n\n``` shell\nobjdiff left.yml right.yml\n```\n\nyields the [result](./tests/diffs/out.txt).\n\n## Installation\n\nBuild binary:\n\n``` shell\nmake\n```\n\nShow help:\n\n``` shell\n./dist/objdiff --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fk8s-object-diff-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberquerant%2Fk8s-object-diff-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fk8s-object-diff-go/lists"}