{"id":36706669,"url":"https://github.com/borball/ocp-cluster-diff","last_synced_at":"2026-01-12T11:43:22.466Z","repository":{"id":251272879,"uuid":"836795460","full_name":"borball/ocp-cluster-diff","owner":"borball","description":"Script to compare 2 OpenShift clusters","archived":false,"fork":false,"pushed_at":"2025-04-17T12:19:41.000Z","size":732,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T02:50:12.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/borball.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,"zenodo":null}},"created_at":"2024-08-01T15:15:16.000Z","updated_at":"2025-04-17T12:19:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"00c03fdc-6ba8-47c0-a478-21680aebeb12","html_url":"https://github.com/borball/ocp-cluster-diff","commit_stats":null,"previous_names":["borball/ocp-cluster-diff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/borball/ocp-cluster-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borball%2Focp-cluster-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borball%2Focp-cluster-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borball%2Focp-cluster-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borball%2Focp-cluster-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borball","download_url":"https://codeload.github.com/borball/ocp-cluster-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borball%2Focp-cluster-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-12T11:43:21.721Z","updated_at":"2026-01-12T11:43:22.447Z","avatar_url":"https://github.com/borball.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage\n\n### Generate must-gather\n\nNote that the default must-gather image may not collect all the resources required for the comparison, so a custom \nimage can/shall be used in this repo. \n\nUpdate the [resources.cfg](collection-scripts/resources.cfg) based on your needs to if you need to compare additional resources. Build the \nimage and publish it to your registry so that you can fetch the cluster data accordingly. \n\nIn this repo, we built and published the image to quay.io/bzhai/caas-vdu-must-gather:4.18\n\nTo generate a custom must-gather, run command below towards the clusters you want to compare:\n\n```shell\n# cluster 1\noc adm must-gather --image=quay.io/bzhai/vdu-caas-must-gather:4.18 --dest-dir cluster1-must-gather\n# cluster 2\noc adm must-gather --image=quay.io/bzhai/vdu-caas-must-gather:4.18 --dest-dir cluster2-must-gather\n```\n\n### Compare\n\nThen compare the collected resources:\n\n```shell\ndiff.sh cluster1-must-gather cluster2-must-gather\n```\n\n### Demo\n\n![demo](diff.jpg \"cluster diff\")\n\n\n### Extend\n\nYou can update the file [resources.cfg](collection-scripts/resources.cfg) to add/remove resoures:\n```shell\n\ncluster_scoped_resources=(\n  \"clusterversion/version\"\n  \"containerruntimeconfigs\"\n  \"performanceprofiles\"\n  \"networks.operator.openshift.io/cluster\"\n  \"mc/container-mount-namespace-and-kubelet-conf-master\"\n  \"mc/06-kdump-enable-master\"\n  \"mc/07-sriov-related-kernel-args-master\"\n  \"mc/08-set-rcu-normal-master\"\n  \"mc/99-crio-disable-wipe-master\"\n  \"mc/99-sync-time-once-master\"\n)\n\nnamespaced_resources=(\n  \"openshift-cluster-node-tuning-operator tuned\"\n  \"openshift-monitoring cm/cluster-monitoring-config\"\n  \"openshift-operator-lifecycle-manager cm/collect-profiles-config\"\n  \"openshift-marketplace catalogsource/redhat-operators\"\n  \"openshift-marketplace catalogsource/certified-operators\"\n  \"openshift-ptp ptpconfig\"\n  \"openshift-ptp ptpoperatorconfig\"\n  \"openshift-sriov-network-operator SriovOperatorConfig\"\n  \"openshift-sriov-network-operator SriovNetwork\"\n  \"openshift-sriov-network-operator SriovNetworkNodePolicy\"\n  \"openshift-local-storage LocalVolumeSet\"\n)\n\n```\n\nthen modify .env so that you can build and publish the image to your own registry:\n\n```\nDOCKER_IMAGE=\u003cyour_registry\u003e/vdu-caas-must-gather\nDOCKER_TAG=4.18\n```\n\n```shell\nmake podman_build podman_publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborball%2Focp-cluster-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborball%2Focp-cluster-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborball%2Focp-cluster-diff/lists"}