Skip to content

Commit

Permalink
update to handle audit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Jan 5, 2018
1 parent 95fd19b commit 279b6e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/server/kubernetes/master/master_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import (
utilflag "k8s.io/apiserver/pkg/util/flag"
auditlog "k8s.io/apiserver/plugin/pkg/audit/log"
auditwebhook "k8s.io/apiserver/plugin/pkg/audit/webhook"
pluginwebhook "k8s.io/apiserver/plugin/pkg/audit/webhook"
kubeclientgoinformers "k8s.io/client-go/informers"
openapicommon "k8s.io/kube-openapi/pkg/common"
kapiserveroptions "k8s.io/kubernetes/cmd/kube-apiserver/app/options"
Expand Down Expand Up @@ -819,7 +820,7 @@ func GetAuditConfig(auditConfig configapi.AuditConfig) (audit.Backend, auditpoli

// webhook configuration, only when config file was provided
if len(auditConfig.WebHookKubeConfig) > 0 {
webhook, err := auditwebhook.NewBackend(auditConfig.WebHookKubeConfig, string(auditConfig.WebHookMode), auditv1beta1.SchemeGroupVersion)
webhook, err := auditwebhook.NewBackend(auditConfig.WebHookKubeConfig, string(auditConfig.WebHookMode), auditv1beta1.SchemeGroupVersion, pluginwebhook.NewDefaultBatchBackendConfig())
if err != nil {
glog.Fatalf("Audit webhook initialization failed: %v", err)
}
Expand Down

0 comments on commit 279b6e9

Please sign in to comment.