<p>I want to run kubectl and get all the secrets of type = X. Is this possible?</p>

<p>I.e if I want to get all secrets where type=tls</p>

<p>something like <code>kubectl get secrets --type=tls</code>?</p>

<p>How about <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/" rel="noreferrer">field-selector</a>:</p>
<pre><code>$ kubectl get secrets --field-selector type=kubernetes.io/tls
</code></pre>
