Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impersonation: Clear config.BearerTokenFile when setting BearerToken. #258

Merged
merged 1 commit into from
Jan 26, 2021

Commits on Jan 25, 2021

  1. 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>
    nairb774 committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    2ca0edc View commit details
    Browse the repository at this point in the history