{"id":13521615,"url":"https://github.com/superbrothers/ksort","last_synced_at":"2025-04-12T10:32:23.657Z","repository":{"id":29811310,"uuid":"117810202","full_name":"superbrothers/ksort","owner":"superbrothers","description":"Sort manfest files in a proper order by Kind","archived":false,"fork":false,"pushed_at":"2024-05-29T02:34:28.000Z","size":8075,"stargazers_count":59,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T13:38:53.643Z","etag":null,"topics":["kubectl-plugins","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superbrothers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2018-01-17T08:51:58.000Z","updated_at":"2024-06-01T09:03:45.000Z","dependencies_parsed_at":"2024-06-19T00:27:52.830Z","dependency_job_id":"7798b049-52e9-47d8-9853-1d763a9266fc","html_url":"https://github.com/superbrothers/ksort","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.31666666666666665","last_synced_commit":"af6d8f61cdc596ef660c1ffd64c6ca8604b0cb91"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrothers%2Fksort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrothers%2Fksort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrothers%2Fksort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbrothers%2Fksort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superbrothers","download_url":"https://codeload.github.com/superbrothers/ksort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224722145,"owners_count":17358670,"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":["kubectl-plugins","kubernetes"],"created_at":"2024-08-01T06:00:36.499Z","updated_at":"2024-11-15T03:05:31.833Z","avatar_url":"https://github.com/superbrothers.png","language":"Go","funding_links":[],"categories":["kubectl Plugins","Go"],"sub_categories":["Installing plugins via awesome-kubectl-plugins"],"readme":"# ksort\n\n[![Build Status](https://travis-ci.org/superbrothers/ksort.svg?branch=master)](https://travis-ci.org/superbrothers/ksort)\n\nThis is a tool which does in-place sort of Kubernetes manifests by Kind.\n\n## Description\n\nWhen installing manifests, they should be sorted in a proper order by Kind. For example, Namespace object must be in the first place when installing them.\n\nksort sorts manfest files in a proper order by Kind.\n\n## Usage\n\nSort manifest files in the `deploy` directory in the proper order, and output the result to the stdout.\n\n```\n$ ls ./manifests\ndeployment.yaml  ingress.yaml  namespace.yaml  service.yaml\n$ ksort -f ./manifests\n```\n\nTo pass the result into the stdin of `kubectl apply` command is also convenient.\n\n```\n$ ksort -f ./manifests | kubectl apply -f -\n```\n\nSort manifests contained the manifest file that is specified.\n```\n$ ksort -f ./app.yaml\n```\n\nSort manifests passed into stdin.\n```\n$ cat app.yaml | ksort -f-\n```\n\n## Installation\n\nYou can download an archive file from [GitHub Releases](https://github.com/superbrothers/ksort/releases), then extract it and install a binary.\n\nOr use `go get` as follows:\n\n```\n$ go get github.com/superbrothers/ksort/cmd\n```\n\n## Installation as kubectl plugin\n\nYou can also use ksort as kubectl plugin. The name as kubectl plugin is `sort-manifests`.\n\n1. Install [krew](https://github.com/GoogleContainerTools/krew) that is a plugin manager for kubectl\n2. Run:\n\n        kubectl krew install sort-manifests\n\n3. Try it out\n\n        kubectl sort-manifests -h\n\n## License\n\nThis software is released under the MIT License and includes the work that is distributed in the Apache License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbrothers%2Fksort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbrothers%2Fksort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbrothers%2Fksort/lists"}