Merge pull request #125552 from liggitt/fix-timeout-wiring

KEP-3221: Fix structured authorization webhook timeout wiring and detection
This commit is contained in:
Kubernetes Prow Robot
2024-06-19 19:00:16 -07:00
committed by GitHub
3 changed files with 21 additions and 1 deletions

View File

@@ -128,6 +128,9 @@ func (r *reloadableAuthorizerResolver) newForConfig(authzConfig *authzconfig.Aut
if err != nil {
return nil, nil, err
}
if configuredAuthorizer.Webhook.Timeout.Duration != 0 {
clientConfig.Timeout = configuredAuthorizer.Webhook.Timeout.Duration
}
var decisionOnError authorizer.Decision
switch configuredAuthorizer.Webhook.FailurePolicy {
case authzconfig.FailurePolicyNoOpinion: