Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impersonation: Clear config.BearerTokenFile when setting BearerToken.
When running in a cluster, the BearerTokenFile is set to point to `/var/run/secrets/kubernetes.io/serviceaccount/token` where the service account's token is auto-mounted. If this value is not cleared, the setting of the BearerToken field will have no effect. Relevant documentation: https://pkg.go.dev/k8s.io/client-go@v0.20.2/rest#Config.BearerTokenFile Signed-off-by: Brian Atkinson <brian@atkinson.mn>
- Loading branch information