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

Add UID to client-go impersonation config #104483

Merged
merged 1 commit into from Sep 27, 2021

Commits on Sep 24, 2021

  1. Introduces Impersonate-Uid to client-go.

    * Updates ImpersonationConfig in rest/config.go to include UID
      attribute, and pass it through when copying the config
    * Updates ImpersonationConfig in transport/config.go to include UID
      attribute
    * In transport/round_tripper.go, Set the "Impersonate-Uid" header in
      requests based on the UID value in the config
    * Update auth_test.go integration test to specify a UID through the new
      rest.ImpersonationConfig field rather than manually setting the
      Impersonate-Uid header
    
    Signed-off-by: Margo Crawford <margaretc@vmware.com>
    margocrawf committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    d9ddfb2 View commit details
    Browse the repository at this point in the history