Skip to content

Commit 279b6e9

Browse files
committed
update to handle audit changes
1 parent 95fd19b commit 279b6e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/server/kubernetes/master/master_config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import (
4646
utilflag "k8s.io/apiserver/pkg/util/flag"
4747
auditlog "k8s.io/apiserver/plugin/pkg/audit/log"
4848
auditwebhook "k8s.io/apiserver/plugin/pkg/audit/webhook"
49+
pluginwebhook "k8s.io/apiserver/plugin/pkg/audit/webhook"
4950
kubeclientgoinformers "k8s.io/client-go/informers"
5051
openapicommon "k8s.io/kube-openapi/pkg/common"
5152
kapiserveroptions "k8s.io/kubernetes/cmd/kube-apiserver/app/options"
@@ -819,7 +820,7 @@ func GetAuditConfig(auditConfig configapi.AuditConfig) (audit.Backend, auditpoli
819820

820821
// webhook configuration, only when config file was provided
821822
if len(auditConfig.WebHookKubeConfig) > 0 {
822-
webhook, err := auditwebhook.NewBackend(auditConfig.WebHookKubeConfig, string(auditConfig.WebHookMode), auditv1beta1.SchemeGroupVersion)
823+
webhook, err := auditwebhook.NewBackend(auditConfig.WebHookKubeConfig, string(auditConfig.WebHookMode), auditv1beta1.SchemeGroupVersion, pluginwebhook.NewDefaultBatchBackendConfig())
823824
if err != nil {
824825
glog.Fatalf("Audit webhook initialization failed: %v", err)
825826
}

0 commit comments

Comments
 (0)