kube-split-yaml

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

kube-split-yaml

Simple tool to split one file with kubernetes manifests into separated ones.

Use cases

Useful when you are using kustomize and you want to evaluate generated manifests after kustomoze build . with OPA.

$ kustomize build <path_to_kustomization> >> build.yaml
$ kube-split-yaml --input build.yaml --output-dir manifests
$ for i in $(ls manifests); do opa eval -d <validation_rego> -i manifests/$i data.kubernetes.admission.deny --format=pretty; done

Installation and usage

  1. Install
    $ got get -v  github.com/borisputerka/kube-split-yaml
    
  2. Use plugin
    $ kube-split-yaml --input <input_file> --outpud-dir <output_dir>
    

Flags reference

Flag Description Default
input Input file to split. Can be replaced with stdin ""
output-dir Output directory where split yamls will be written split_yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL