Commit 130f5d10 authored by Cao Shufeng's avatar Cao Shufeng

set --audit-log-format default to json

parent 1f580ae8
......@@ -133,7 +133,7 @@ func TestAddFlagsFlag(t *testing.T) {
MaxAge: 11,
MaxBackups: 12,
MaxSize: 13,
Format: "legacy",
Format: "json",
},
WebhookOptions: apiserveroptions.AuditWebhookOptions{
Mode: "blocking",
......
......@@ -81,7 +81,7 @@ type AuditWebhookOptions struct {
func NewAuditOptions() *AuditOptions {
return &AuditOptions{
WebhookOptions: AuditWebhookOptions{Mode: pluginwebhook.ModeBatch},
LogOptions: AuditLogOptions{Format: pluginlog.FormatLegacy},
LogOptions: AuditLogOptions{Format: pluginlog.FormatJson},
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment