Merge pull request #41049 from able8/add-go-template-to-kubectl-output-format
Add the go-template output format in "kubectl Cheat Sheet" pagepull/42622/head
commit
e6987bde68
|
@ -431,6 +431,8 @@ Output format | Description
|
|||
--------------| -----------
|
||||
`-o=custom-columns=<spec>` | Print a table using a comma separated list of custom columns
|
||||
`-o=custom-columns-file=<filename>` | Print a table using the custom columns template in the `<filename>` file
|
||||
`-o=go-template=<template>` | Print the fields defined in a [golang template](https://pkg.go.dev/text/template)
|
||||
`-o=go-template-file=<filename>` | Print the fields defined by the [golang template](https://pkg.go.dev/text/template) in the `<filename>` file
|
||||
`-o=json` | Output a JSON formatted API object
|
||||
`-o=jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath) expression
|
||||
`-o=jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath) expression in the `<filename>` file
|
||||
|
|
Loading…
Reference in New Issue