impersonator: add comment about long running func
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
parent
b530cef3b1
commit
4c162be8bf
@ -129,6 +129,10 @@ func newInternal( //nolint:funlen // yeah, it's kind of long.
|
|||||||
serverConfig.LoopbackClientConfig.BearerToken = ""
|
serverConfig.LoopbackClientConfig.BearerToken = ""
|
||||||
|
|
||||||
// match KAS exactly since our long running operations are just a proxy to it
|
// match KAS exactly since our long running operations are just a proxy to it
|
||||||
|
// this must be kept in sync with github.com/kubernetes/kubernetes/cmd/kube-apiserver/app/server.go
|
||||||
|
// this is nothing to stress about - it has not changed since the beginning of Kube:
|
||||||
|
// v1.6 no-op move away from regex to request info https://github.com/kubernetes/kubernetes/pull/38119
|
||||||
|
// v1.1 added pods/attach to the list https://github.com/kubernetes/kubernetes/pull/13705
|
||||||
serverConfig.LongRunningFunc = filters.BasicLongRunningRequestCheck(
|
serverConfig.LongRunningFunc = filters.BasicLongRunningRequestCheck(
|
||||||
sets.NewString("watch", "proxy"),
|
sets.NewString("watch", "proxy"),
|
||||||
sets.NewString("attach", "exec", "proxy", "log", "portforward"),
|
sets.NewString("attach", "exec", "proxy", "log", "portforward"),
|
||||||
|
Loading…
Reference in New Issue
Block a user