<p>I have a GitHub Actions workflow that substitutes value in a deployment manifest. I use <code>kubectl patch --local=true</code> to update the image. This used to work flawlessly until now. Today the workflow started to fail with a <code>Missing or incomplete configuration info</code> error.</p>
<p>I am running <code>kubectl</code> with <code>--local</code> flag so the config should not be needed. Does anyone know what could be the reason why <code>kubectl</code> suddenly started requiring a config? I can't find any useful info in Kubernetes GitHub issues and hours of googling didn't help.</p>
<p>Output of the failed step in GitHub Actions workflow:</p>
<pre><code>Run: kubectl patch --local=true -f authserver-deployment.yaml -p '{&quot;spec&quot;:{&quot;template&quot;:{&quot;spec&quot;:{&quot;containers&quot;:[{&quot;name&quot;:&quot;authserver&quot;,&quot;image&quot;:&quot;test.azurecr.io/authserver:20201230-1712-d3a2ae4&quot;}]}}}}' -o yaml &gt; temp.yaml &amp;&amp; mv temp.yaml authserver-deployment.yaml

error: Missing or incomplete configuration info.  Please point to an existing, complete config file:


  1. Via the command-line flag --kubeconfig
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

To view or setup config directly use the 'config' command.
Error: Process completed with exit code 1.
</code></pre>
<p>Output of <code>kubectl version</code>:</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;19&quot;, GitVersion:&quot;v1.19.0&quot;, 
GitCommit:&quot;ffd68360997854d442e2ad2f40b099f5198b6471&quot;, GitTreeState:&quot;clean&quot;, 
BuildDate:&quot;2020-11-18T13:35:49Z&quot;, GoVersion:&quot;go1.15.0&quot;, Compiler:&quot;gc&quot;, 
Platform:&quot;linux/amd64&quot;}
</code></pre>

Rafał Sroka
<p>As a workaround I installed kind (it does take longer for the job to finish, but at least it's working and it can be used for e2e tests later).</p>
<p>Added this step:</p>
<pre><code>- name: Setup kind
        run: kubectl version
        uses: engineerd/setup-kind@v0.5.0
</code></pre>
<p>Also use <code>--dry-run=client</code> as an option for your kubectl command.</p>
<p>I do realize this is not the proper solution.</p>
