carta
kubernetes-split-yaml(1)

kubernetes-split-yaml1

Split a giant yaml file into one file per kubernetes resource

Overview

Name:

kubernetes-split-yaml - Split the 'giant yaml file' into one file pr kubernetes resource

Usage:

kubernetes-split-yaml [global options] command [command options] [arguments...]

Commands:

help, h

Shows a list of commands or help for one command

Global options:

--outdir value

output dir (default: "generated")

--template_sel value

pre-set template to use (default: "tpl_flat")

--tpl_flat outdir

tpl_flat gotemplate (.X.Outdir is set to outdir flag) (default: "{{.X.Outdir}}/{{.Metadata.Name}}-{{.X.ShortKind}}.yaml")

--tpl_ns value

tpl_ns gotemplate (.X.NS equals .Metadata.Namespace or '_no_ns_' if unset) (default: "{{.X.Outdir}}/{{.X.NS}}/{{.Metadata.Name}}.{{.Kind}}.yaml")

--name_re value

Kubernetes API metadata.name to match (default: "^[^/ ]+$")

--namespace_re value

Kubernetes API metadata.namespace to match (default: "^(|[a-z0-9]([-a-z0-9]*[a-z0-9])?)$")

--kind_re value

Kubernetes API kind to match (default: "^[0-9a-zA-Z]+$")

--file_re value

final output file regex to match (default: ".+")

--help, -h

show help

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

From kubernetes-split-yaml 0.4.0-1+b11 in Debian 13 (Trixie). Parsed by carta from the page's man source.