<p>I have a CR in the cluster. I know that there is a filed <code>specialField</code> somewhere in this CRD. I do not know where it is. Right now I am randomly exploring the CRD using <code>kubectl explain path.to.some.filed</code> to try to fiend the filed. Is there some way to explain the entire nested structure using <code>kubectl explain</code>?</p>
<p>What I am looking for is something like this</p>
<pre><code>kubectl explain-magic my-crd

my-crd
 a
  b
   c
 other
  field 
 more
  fields
 very 
  nested
   field
</code></pre>
<p>or as an alternative</p>
<pre><code>my-crd
a
a.b
a.b.c
other
other.field
more
more.fields
very
very.nested
very.nested.field
</code></pre>

User12547645
<blockquote>
<p>Add the --recursive flag to display all of the fields at once without descriptions. Information about each field is
retrieved from the server in OpenAPI format.</p>
</blockquote>
<p>from <code>kubectl help explain</code>.</p>
<p>Just do: <code>kubectl explain --recursive my-crd</code></p>
