Merge pull request #125552 from liggitt/fix-timeout-wiring
KEP-3221: Fix structured authorization webhook timeout wiring and detection
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user