<p>I see there is a field &quot;config-mode&quot; in Kubernetes configuration file (kubeconfig).</p>
<pre><code>users:
- name: myuser
  user:
    auth-provider:
      config:
        access-token: xxxxx
        apiserver-id: xxxxx
        client-id: xxxxx
        config-mode: &quot;1&quot;
        environment: PublicCloud
        expires-in: &quot;xxxx&quot;
        expires-on: &quot;xxxxxxx&quot;
        refresh-token: xxxxxx
        tenant-id: xxxxxx
      name: user1

</code></pre>
<p>What is the use of this configuration?</p>

RMNull
<p>This is flag specific for azure. <br>
Here is a quote from kubernetes CHANGELOG page:</p>
<blockquote>
<p>Added a config-mode flag in azure auth module to enable getting AAD token without spn: prefix in audience claim. <br>
When it's not specified, the default behavior doesn't change. <br>
(#87630, @weinong) [SIG API Machinery, Auth, CLI and Cloud Provider]</p>
</blockquote>
<p><a href="https://github.com/kubernetes/kubernetes/blob/d41249f780316841a0e13948e7af24d10b9c9c0d/CHANGELOG/CHANGELOG-1.18.md" rel="nofollow noreferrer">Reference to the changelog page</a> <br>
<a href="https://github.com/kubernetes/kubernetes/pull/87630/files" rel="nofollow noreferrer">Reference to the PR that added this flag</a></p>
