<p>Error when I try to apply a <code>kubectl ou edit</code>, for <code>kubectl get pods</code>, it works normally.</p>
<p>&quot;error validating data: the server has asked for the client to provide credentials; if you choose to ignore these errors, turn validation off with <code>--validate=false</code>&quot;</p>
<p>edit config and checked all pods on kube-system, all is working normally.</p>

David 
<p>For me this issue appeared with the latest helm version <code>3.12.0</code> running against a cluster with Kubernetes <code>1.24.10</code> and using kubectl version <code>1.27.1</code>.</p>
<pre><code>  Error: unable to build kubernetes objects from release manifest: error validating &quot;&quot;: error validating data: the server has asked for the client to provide credentials
</code></pre>
<p>I was first thinking it's an issue with the kubectl version, so I downgraded to earlier versions as mentioned in the answer from David, but that did not help.</p>
<p>The issue was caused by running <code>brew upgrade</code> on mac and I reverted to the older helm version <code>3.11.3</code> by running:</p>
<pre><code># unlink the current version
brew unlink helm
# download and install the version v3.11.3
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/1e9569bdecc40e762028cb441b8bfb7f595d3755/Formula/helm.rb &amp;&amp; brew install ./helm.rb
</code></pre>
<p>This solved the problem for me.</p>
