{"id":37175341,"url":"https://github.com/kdwils/splinter","last_synced_at":"2026-01-14T20:28:32.247Z","repository":{"id":109686902,"uuid":"609707410","full_name":"kdwils/splinter","owner":"kdwils","description":"A simple command line tool for merging or separating kubernetes manifest files","archived":false,"fork":false,"pushed_at":"2025-12-23T00:14:32.000Z","size":383,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-24T13:24:28.571Z","etag":null,"topics":["cli","gitops","golang","k8s-tools","kubernetes","kustomize","manifest","yaml"],"latest_commit_sha":null,"homepage":"","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/kdwils.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-05T01:30:26.000Z","updated_at":"2025-12-23T00:14:28.000Z","dependencies_parsed_at":"2023-05-13T16:00:44.149Z","dependency_job_id":"3419b4db-d008-4bfb-b201-bdeea795accc","html_url":"https://github.com/kdwils/splinter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kdwils/splinter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdwils%2Fsplinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdwils%2Fsplinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdwils%2Fsplinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdwils%2Fsplinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdwils","download_url":"https://codeload.github.com/kdwils/splinter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdwils%2Fsplinter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":["cli","gitops","golang","k8s-tools","kubernetes","kustomize","manifest","yaml"],"created_at":"2026-01-14T20:28:31.443Z","updated_at":"2026-01-14T20:28:32.240Z","avatar_url":"https://github.com/kdwils.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Splinter\n\nA command-line tool to split or merge Kubernetes manifests.\n\n## Use case\n\nSplinter simplifies working with large Kubernetes manifests. \n\nIt helps in scenarios where you need to:\n- Break down large manifests into manageable, individual files organized by resource type\n- Generate a `kustomization.yaml` to glue the individual files together\n\nOr...\n\n- Recombine the individual files back into a single manifest\n\n## Installation\n\n### Using Go\n\n```bash\ngo install github.com/kdwils/splinter@latest\n```\n\n### From Releases\n\nDownload the latest binary from [GitHub Releases](https://github.com/kdwils/splinter/releases)\n\n## Usage\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `split` | Split a single manifest into multiple files organized by resource kind |\n| `merge` | Merge multiple manifest files into a single output (prints to stdout by default) |\n\n### Global Flags\n\n| Flag | Short | Required | Description |\n|------|--------|----------|-------------|\n| `--include` | `-i` | No | Files or directories to include |\n| `--output` | `-o` | No | Output directory/file path |\n\n\n## Examples\n\n### Splitting Manifests\n\n![split gif](vhs/split.gif)\n\nWith the include flag\n```bash\nsplinter split -i examples/merged/merged.yaml -o examples/split/\n```\n\nWith an argument\n```bash\nsplinter split examples/merged/merged.yaml -o examples/split/\n```\n\nSplit and generate a Kustomization file:\n```bash\nsplinter split -k -i examples/merged/merged.yaml -o examples/split/\n```\n\n### Merging Manifests\n\n![merge gif](vhs/merge.gif)\n\nMerge multiple files into stdout:\n```bash\nsplinter merge -i examples/split/\n```\n\nMerge into a specific file:\n```bash\nsplinter merge -i examples/split/ -o examples/flatten/my-manifest.yaml\n```\n\n### Working with Pipes\n\nSplit Helm output:\n```bash\nhelm template my-release sealed-secrets/sealed-secrets | splinter split -o my-dir/\n```\n\nSplit Helm output and include additional files:\n```bash\nhelm template my-release sealed-secrets/sealed-secrets | splinter split -i existing.yaml -o my-dir/\n```\n\n## Development\n\nThis project uses [Nix](https://nixos.org/) for development environment consistency. \n\nAssuming a working Nix installation:\n\n#### Start the nix develop shell\n\n```shell\nnix develop .\n```\n#### Run tests\n```shell\ngo test ./...\n```\n\n#### Build binary\n```shell\ngo build\n```\n\n#### Run a command\n```shell\ngo run main.go merge -i examples/split/\n```\n\n## Acknowledgements\n\n* [vhs](https://github.com/charmbracelet/vhs) to make the gifs in this readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdwils%2Fsplinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdwils%2Fsplinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdwils%2Fsplinter/lists"}