TKN-TASKRUN-EXPORT(1)

πŸ“¦ version 0.46.2, in nixos 26.05, nixpkgs unstable

✨ TKN-TASKRUN-EXPORT ✨

okay bestie, welcome to the tkn-taskrun-export page from the tkn manual β€” this is the one that lifts your TaskRun out of the cluster and hands it to you as a file, and honestly? iconic behavior. πŸ’…


🌸 NAME 🌸

tkn-taskrun-export β€” literally just exports a TaskRun, that's the whole vibe 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

tkn taskrun export

πŸŽ€ DESCRIPTION πŸŽ€

Export TaskRun. no cap, that's it. it takes your TaskRun and gives it to you in a form you can carry around. ✨

πŸ’– OPTIONS πŸ’–

  • --allow-missing-template-keys[=true] β€” if this is true, it just... ignores any errors in templates when a field or map key is missing from the template. like, no drama, we move. only applies to the golang and jsonpath output formats tho, so don't get any ideas. πŸ‘€
  • -h, --help[=false] β€” help for export. your little emergency "what does this do again" button. πŸ™ˆ
  • -o, --output="" β€” the output format. one of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). pick your fighter. πŸ”₯
  • --show-managed-fields[=false] β€” if true, it keeps the managedFields when printing objects in JSON or YAML format. normally those get yeeted, so this is your "actually, I want the receipts" flag. πŸ’€
  • --template="" β€” a template string, or a path to a template file, to use when you're doing -o=go-template or -o=go-template-file. the template format is golang templates, docs here: ⟨http://golang.org/pkg/text/template/#pkg-overview⟩ 🧚

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these are the hand-me-downs from the parent command, but they still ate fr fr:

  • -c, --context="" β€” name of the kubeconfig context to use (default: kubectl config current-context)
  • -k, --kubeconfig="" β€” kubectl config file (default: $HOME/.kube/config)
  • -n, --namespace="" β€” namespace to use (default: from $KUBECONFIG)
  • -C, --no-color[=false] β€” disable coloring (default: false)

🌈 EXAMPLE 🌈

Export Taskrun Definition:

"tkn taskrun export" will export a taskrun definition as yaml to be easily imported or modified.

Example: export a TaskRun named 'taskrun' in namespace 'foo' and recreate it in the namespace 'bar':

tkn taskrun export taskrun -n foo|kubectl create -f- -n bar

like, pipe it straight into kubectl create?? main character energy. πŸš€

⭐ SEE ALSO ⭐

  • tkn-taskrun(1) β€” go say hi to the parent, she's the whole reason this page exists πŸ’œ

and that's the page, bestie!! this beauty was Auto generated by spf13/cobra β€” yeah, the robots wrote it, but we made it cute. mwah πŸ’‹βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from