allow impersonating user.Info.Extra

This commit is contained in:
deads2k
2016-08-18 07:46:51 -04:00
parent d12efc4702
commit 432e6ecdae
4 changed files with 168 additions and 26 deletions

View File

@@ -28,6 +28,12 @@ const (
// ImpersonateGroupHeader is used to impersonate a particular group during an API server request.
// It can be repeated multipled times for multiple groups.
ImpersonateGroupHeader = "Impersonate-Group"
// ImpersonateUserExtraHeaderPrefix is a prefix for any header used to impersonate an entry in the
// extra map[string][]string for user.Info. The key will be every after the prefix.
// It can be repeated multipled times for multiple map keys and the same key can be repeated multiple
// times to have multiple elements in the slice under a single key
ImpersonateUserExtraHeaderPrefix = "Impersonate-Extra-"
)
// +genclient=true