TKN-TASKRUN-EXPORT(1)
β¨ 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 thegolangandjsonpathoutput 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 themanagedFieldswhen 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-templateor-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
- nixos 26.05: tektoncd-cli 0.45.0
- nixpkgs unstable: tektoncd-cli 0.46.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms