<p>I am trying to understand where is this warning coming from ? I have disabled the PSP support in my cluster and indeed using k8s version lower than 1.25. But I want to understand and disable this warning. Is it possible ? Which controller is responsible to handle this WARNING?</p>
<pre><code>kubectl get psp -A
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
</code></pre>

<p>There is a blog K8s where various aspects of the topic &quot;Warnings&quot; are explained.
<a href="https://kubernetes.io/blog/2020/09/03/warnings/#deprecation-warnings" rel="nofollow noreferrer">https://kubernetes.io/blog/2020/09/03/warnings/#deprecation-warnings</a></p>
<p>In summary, these have been introduced since version 1.19 and you can’t remove them easily (unless you use the k8s.io/client-go library to modify the K8s API).
<a href="https://kubernetes.io/blog/2020/09/03/warnings/#customize-client-handling" rel="nofollow noreferrer">https://kubernetes.io/blog/2020/09/03/warnings/#customize-client-handling</a></p>
<p>The last resort might be to &quot;throw away&quot; the output:</p>
<pre><code>kubectl get psp -A 2&gt;&amp;1 | grep -vi &quot;warn&quot; | grep -vi &quot;deprecat&quot; 
</code></pre>
