kubeconfig 文件中的配置模式是什么?

what is config-mode in kubeconfig file?

我看到 Kubernetes 配置文件 (kubeconfig) 中有一个字段“config-mode”。

users:
- name: myuser
  user:
    auth-provider:
      config:
        access-token: xxxxx
        apiserver-id: xxxxx
        client-id: xxxxx
        config-mode: "1"
        environment: PublicCloud
        expires-in: "xxxx"
        expires-on: "xxxxxxx"
        refresh-token: xxxxxx
        tenant-id: xxxxxx
      name: user1

这个配置有什么用?

这是特定于 azure 的标志。
这是来自 kubernetes CHANGELOG 页面的引用:

Added a config-mode flag in azure auth module to enable getting AAD token without spn: prefix in audience claim.
When it's not specified, the default behavior doesn't change.
(#87630, @weinong) [SIG API Machinery, Auth, CLI and Cloud Provider]

Reference to the changelog page
Reference to the PR that added this flag