<p>I am trying to set up a custom Kubernetes Client using the following</p>
<pre><code>Config config = new ConfigBuilder()
        .withMasterUrl(eksEndpoint)
        .withOauthTokenProvider(authTokenProvider)
        .withTrustCerts()
        .build();
return new KubernetesClientBuilder().withConfig(config).build();
</code></pre>
<p>This works fine when I do not hacve a kube cionfig file configured. But when I do it tries to reference it and causes this failure.</p>
<pre><code>mapping values are not allowed here
in reader, line 3, column 11:
    &quot;kind&quot;: &quot;ExecCredential&quot;,
</code></pre>
<p>I have gone through as much documentation as I can find but can't see as to why fabric8 keeps referencing my kube config.
Removing the kube config is not an option.
I have tried adding <code>withAutoConfigure(false)</code> but this has made no difference.</p>

Darragh MacKenna
<p>In order to not automatically pick up <code>.kube/config</code> <code>Config.empty()</code> should be provided into the builder constructor:</p>
<pre class="lang-java prettyprint-override"><code>Config config = new ConfigBuilder(Config.empty())
        .withMasterUrl(eksEndpoint)
        .withOauthTokenProvider(authTokenProvider)
        .withTrustCerts()
        .build();
</code></pre>
