{"id":18303135,"url":"https://github.com/monzo/kontrast","last_synced_at":"2025-04-05T14:31:52.904Z","repository":{"id":47729982,"uuid":"146407961","full_name":"monzo/kontrast","owner":"monzo","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-21T15:51:56.000Z","size":11595,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-21T06:33:21.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/monzo.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":"2018-08-28T07:19:35.000Z","updated_at":"2020-04-12T12:42:25.000Z","dependencies_parsed_at":"2022-08-23T09:00:26.787Z","dependency_job_id":null,"html_url":"https://github.com/monzo/kontrast","commit_stats":null,"previous_names":["monzo/kryp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fkontrast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fkontrast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fkontrast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fkontrast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monzo","download_url":"https://codeload.github.com/monzo/kontrast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247352669,"owners_count":20925309,"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":[],"created_at":"2024-11-05T15:24:18.940Z","updated_at":"2025-04-05T14:31:47.893Z","avatar_url":"https://github.com/monzo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kontrast\n\n`kubectl diff` with pretty colours. Currently alpha - use at your own risk (`kontrast` doesn't do any write operations, so should be okay).\n\n## Installation\n\n`go install github.com/monzo/kontrast`\n\nNote: this takes a while [1]\n\n## Usage\n\n`kontrast my-manifest.yaml`\n\n## Note on Developing\n\nIf you are running `dep` to introduce a new scheme from a custom Kubernetes resource type, we are aware of at least one upstream repository hosted in BitBucket and expecting [mercurial](https://www.mercurial-scm.org/) to access. Without it installed, `dep` will likely hang and not provide any clues even under verbose mode. \n\nOn macOS, you can install it with Homebrew:\n\n```\nbrew install mercurial\n```\n\n---\n###### [1] Why does it take so long to build/install? Why is the binary 150MB?\n\nKubernetes applies defaults to each created resource. The average manifest doesn't contain every possible option, so a lot of these defaults will show up as deltas. `kontrast` gets around this by applying `scheme.Scheme.SetDefaults(obj)`, which essentially does the same operation as the Kubernetes apiserver when creating an object. Unfortunately this only works if the full apiserver code is imported (i.e. `k8s.io/kubernetes/pkg/master` which imports https://github.com/kubernetes/kubernetes/blob/master/pkg/master/import_known_versions.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonzo%2Fkontrast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonzo%2Fkontrast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonzo%2Fkontrast/lists"}