Skip to content

Commit 48f8ce3

Browse files
authored
Merge pull request #51462 from thockin/kyaml
Document KYAML feature
2 parents ca04c5a + 9f26f83 commit 48f8ce3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

content/en/docs/reference/kubectl/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@ Output format | Description
270270
`-o json` | Output a JSON formatted API object.
271271
`-o jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath/) expression.
272272
`-o jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath/) expression in the `<filename>` file.
273+
`-o kyaml` | Output a KYAML formatted API object (alpha, requires environment variable `KUBECTL_KYAML="true"`).
273274
`-o name` | Print only the resource name and nothing else.
274275
`-o wide` | Output in the plain-text format with any additional information. For pods, the node name is included.
275-
`-o yaml` | Output a YAML formatted API object.
276+
`-o yaml` | Output a YAML formatted API object. KYAML is an experimental Kubernetes-specific dialect of YAML, and can be parsed as YAML.
276277

277278
##### Example
278279

@@ -586,4 +587,4 @@ Current user: plugins-user
586587
* Learn about [`kubectl` usage conventions](/docs/reference/kubectl/conventions/)
587588
* Read about [JSONPath support](/docs/reference/kubectl/jsonpath/) in kubectl
588589
* Read about how to [extend kubectl with plugins](/docs/tasks/extend-kubectl/kubectl-plugins)
589-
* To find out more about plugins, take a look at the [example CLI plugin](https://github.com/kubernetes/sample-cli-plugin).
590+
* To find out more about plugins, take a look at the [example CLI plugin](https://github.com/kubernetes/sample-cli-plugin).

content/en/docs/reference/kubectl/quick-reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ Output format | Description
461461
`-o=json` | Output a JSON formatted API object
462462
`-o=jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath) expression
463463
`-o=jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath) expression in the `<filename>` file
464+
`-o=kyaml` | Output a KYAML formatted API object (alpha, requires environment variable `KUBECTL_KYAML="true"`). KYAML is an experimental Kubernetes-specific dialect of YAML, and can be parsed as YAML.
464465
`-o=name` | Print only the resource name and nothing else
465466
`-o=wide` | Output in the plain-text format with any additional information, and for pods, the node name is included
466467
`-o=yaml` | Output a YAML formatted API object
@@ -510,4 +511,4 @@ Verbosity | Description
510511

511512
* Also read [kubectl Usage Conventions](/docs/reference/kubectl/conventions/) to understand how to use kubectl in reusable scripts.
512513

513-
* See more community [kubectl cheatsheets](https://github.com/dennyzhang/cheatsheet-kubernetes-A4).
514+
* See more community [kubectl cheatsheets](https://github.com/dennyzhang/cheatsheet-kubernetes-A4).

0 commit comments

Comments
 (0)