Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 92b1a90

Browse files
committed
Build no auth client transport if NoImpersonation _or_ TokenReview
Signed-off-by: JoshVanL <[email protected]>
1 parent cad88f0 commit 92b1a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/proxy/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (p *Proxy) Run(stopCh <-chan struct{}) (<-chan struct{}, error) {
7171
p.clientTransport = clientRT
7272

7373
// No auth round tripper for no impersonation
74-
if p.options.DisableImpersonation {
74+
if p.options.DisableImpersonation || p.options.TokenReview {
7575
noAuthClientRT, err := p.roundTripperForRestConfig(&rest.Config{
7676
APIPath: p.restConfig.APIPath,
7777
Host: p.restConfig.Host,

0 commit comments

Comments
 (0)