Make explain --recursive=true
produce all the descriptions in a machine-readable format (like YAML or JSON)
#1734
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
I would like to make
kubectl explain
in recursive mode to produce the exhaustive documentation of all the fields in a format that can be easily consumed by other tools. The output could be JSON or YAML.Why is this needed:
I work on an autocompletion for Kubernetes resource templates (and helm templates). I need to learn the structure of all the possible fields. The recursive mode of
explain
command is perfect for this task, but has two drawbacks:Ideally, I'd like to make the
explain
produce machine-readable output similar to the following:The text was updated successfully, but these errors were encountered: