Merge pull request #95725 from p0lyn0mial/delegated-authz-sar-timeout

sets explicit timeout for SubjectAccessReview client
This commit is contained in:
Kubernetes Prow Robot
2020-10-27 03:37:59 -07:00
committed by GitHub
3 changed files with 14 additions and 0 deletions

View File

@@ -417,6 +417,7 @@ func TestAddFlags(t *testing.T) {
Authorization: &apiserveroptions.DelegatingAuthorizationOptions{
AllowCacheTTL: 10 * time.Second,
DenyCacheTTL: 10 * time.Second,
ClientTimeout: 10 * time.Second,
RemoteKubeConfigFileOptional: true,
AlwaysAllowPaths: []string{"/healthz"}, // note: this does not match /healthz/ or /healthz/*
},