KubernetesClientConfiguration.IsInCluster() not working when automountServiceAccountToken=false #1576
Labels
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
In KubernetesClientConfiguration.IsInCluster, it uses service account token file as one check condition.
When set automountServiceAccountToken false(https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting), there is no token file injected to container, KubernetesClientConfiguration.IsInCluster doesn't work correctly.
The text was updated successfully, but these errors were encountered: