Categorygithub.com/kdwils/splinter
modulepackage
0.1.2
Repository: https://github.com/kdwils/splinter.git
Documentation: pkg.go.dev

# README

Splinter

Simple tool to split or flatten kubernetes manifests.

It is often the case that I will use helm template where certain values are not supported and end up with a single massive manifest which is messy to work with.

Instead, I would prefer to have multiple smaller manifests separated by resource kind.

Usage

Commands

CommandSubcommandDescription
splintersplitsplit a single manifest into multiple manifests organized by resource kind
splintermergemerge individual manifests into a single manifest

Flags

FlagRequiredDescriptionCommand
--include, -ifalseoptional flag to set what files or directories to includeall
--kustomize, -kfalsespit out a kustomization.yaml for the splintered or merged manifest(s)all
--output, -ofalsedirectory to write manifest(s) toall
--delete, -dfalsedelete all files used when merging manifestsmerge

Examples

splinter split --input examples/metallb.yaml --output examples/split/
splinter split examples/metallb.yaml -o examples/split/
splinter merge examples/split/ -o examples/flatten/my-manifest.yaml

You can also pipe from stdin

helm template my-release sealed-secrets/sealed-secrets | splinter split -o my-dir/
helm template my-release sealed-secrets/sealed-secrets | splinter split -i anotherfile.yaml -o my-dir/

Installation

Go:

go install github.com/kdwils/splinter@latest

Github:

check out the latest release

# Packages

No description provided by the author
No description provided by the author