mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-04-15 22:00:02 -04:00
CRD authors can set the externalDocs field in their [OpenAPI v3 schemas](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/) to reference external documentation for their custom resources. However, kubectl explain did not surface this information to users. Render externalDocs metadata in the plaintext output of kubectl explain. When a schema or field includes an externalDocs section, it is now displayed as: ``` EXTERNAL DOCS: <description> URL: <url> ``` This appears after the DESCRIPTION block for top-level resources and after the field description for individual fields. The section is omitted in short mode and when externalDocs is absent. Kubernetes-commit: 7d855871267a3a9698af2862c79ebb7d4d2ec308 |
||
|---|---|---|
| .. | ||
| templates | ||
| explain.go | ||
| explain_test.go | ||
| funcs.go | ||
| funcs_test.go | ||
| generator.go | ||
| generator_test.go | ||
| template.go | ||
| template_test.go | ||