Allow overriding the bearer token via an authorization header (#1539)
* Allow overriding the bearer token via an authorization header * Inject apiClient centrally to reduce code duplication * Dynamically create the resourceVerber in order to allow injecting authentication data * Added bind-address cli option * Create kubernetes clientConfig and client dynamically in apihandler This makes it easier to properly override the authorization token per request. * Added workaround for broken auth when running in a cluster * Fixed crash, when config could not be loaded * Use the request filter chain to inject the apiclient and apiconfig * Minor cleanup of apihandler.go - Run of gulp format - Removed unused parameter - Moved getting the apiclient/config into a helper function
Showing
想要评论请 注册 或 登录