KUBERNETES-SPLIT-YAML(1)

πŸ’– KUBERNETES-SPLIT-YAML(1) πŸ’–

okay bestie, so this is a User Commands situation, section 1, and the tool is called kubernetes-split-yaml. Buckle up, it's lowkey iconic. πŸŽ€


✨ NAME ✨

kubernetes-split-yaml β€” literally splits a giant yaml file into one file per Kubernetes resource. no cap. πŸ¦‹


🌸 DESCRIPTION 🌸

πŸ’… NAME:

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

(yeah, "pr" β€” that's what it says, we're keeping it, it's part of the lore πŸ’€)

🫢 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 (default: false)
bestie fr fr, those regex defaults are not a vibe check you wanna skip β€” they're the whole filter situation, so read them before you start yaml-splitting into the void 😭

🧚 the sign-off 🧚

this was kubernetes-split-yaml version 0.4.0, dated August 2023. periodt. πŸ’œπŸŒΈβœ¨

πŸ“¦ where this page comes from