TKN-PIPELINERUN-EXPORT(1)
π TKN-PIPELINERUN-EXPORT β bestie's guide to yeeting a PipelineRun out as yaml
okay so real talk: this is page TKN-PIPELINERUN-EXPORT(1) of the manual, and it's all about the export subcommand. you already know the family name (tkn), this is the one that grabs a PipelineRun and hands it to you in a format you can copy around. let's get into it π«Ά
β¨ NAME β¨
tkn-pipelinerun-export β Export PipelineRun
like, literally the whole job. export a PipelineRun. that's it, that's the girl π
π¦ SYNOPSIS π¦
tkn pipelinerun export
short and sweet, no cap β¨
πΈ DESCRIPTION πΈ
Export PipelineRun
yes bestie that's genuinely the entire description, the original manpage is a woman of few words and i respect it π
π OPTIONS π
here's where it gets juicy. every flag, none skipped, i would never π
--allow-missing-template-keys[=true]β if true, it just ignores any errors in templates when a field or map key is missing in the template. like, no drama, we move. β οΈ heads up: this only applies togolangandjsonpathoutput formats β don't come for it in other formats, it's not invited there.-h,--help[=false]β help for export. the classic "what does this even do" button, iconic as always π-o,--output=""β the output format, queen of the whole command π 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, keep themanagedFieldswhen printing objects in JSON or YAML format. lowkey niche but slay if you need it β¨--template=""β a template string, or path to a template file, to use when-o=go-templateor-o=go-template-file. the template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. go off with your custom formatting π§
π§ OPTIONS INHERITED FROM PARENT COMMANDS π§
these come from the parent command, so you get them for free, no cap π«Ά
-c,--context=""β name of the kubeconfig context to use (default:kubectl config current-context). choose your universe π-k,--kubeconfig=""β kubectl config file (default:$HOME/.kube/config). your config, your rules π-n,--namespace=""β namespace to use (default: from$KUBECONFIG). home base bestie π-C,--no-color[=false]β disable coloring (default:false). for when the rainbow is Too Much (rare, but valid) π
π₯ EXAMPLE π₯
Export PipelineRun Definition:
tkn pipelinerun export will export a pipelinerun definition as yaml to be easily
imported or modified.
Example: export a PipelineRun named 'pipelinerun' in namespace 'foo' and recreate
it in the namespace 'bar':
tkn pr export pipelinerun -n foo|kubectl create -f- -n bar
see what's happening? you pull the definition out of namespace foo, pipe it straight into kubectl create pointed at namespace bar, and boom β copy-paste relocation of a whole PipelineRun. it's giving main character energy fr fr β
π SEE ALSO π
tkn-pipelinerun(1)β go hang out with the parent page, she has more where this came from π
aaaand that's the whole page bestie π this beauty is Auto generated by spf13/cobra, and it's <rainbow>TKN-PIPELINERUN-EXPORT(1)</rainbow> β same name top and bottom, symmetric queen π
go forth and export responsibly β¨
π¦ 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