Skip to content

Is it possible to set user and user-group in exec ? #937

Answered by clux
Seasquash asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, the impersonation stuff does go into the kubeconfig normally. To do it programmatically you need to override the AuthInfo struct either in Config or in ConfigLoader.

It is also possible to use some of our debug variables for quick tests:

KUBE_RS_DEBUG_IMPERSONATE_USER=xxx KUBE_RS_DEBUG_IMPERSONATE_GROUP=xxx cargo run

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Seasquash
Comment options

@Seasquash
Comment options

Answer selected by Seasquash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants