Commit b5bb8099 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50971 from CaoShuFeng/audit_json

Automatic merge from submit-queue (batch tested with PRs 51134, 51122, 50562, 50971, 51327) set --audit-log-format default to json Updates: https://github.com/kubernetes/kubernetes/issues/48561 **Release note**: ``` set --audit-log-format default to json for kube-apiserver ```
parents ccae631f 130f5d10
...@@ -157,7 +157,7 @@ func TestAddFlags(t *testing.T) { ...@@ -157,7 +157,7 @@ func TestAddFlags(t *testing.T) {
MaxAge: 11, MaxAge: 11,
MaxBackups: 12, MaxBackups: 12,
MaxSize: 13, MaxSize: 13,
Format: "legacy", Format: "json",
}, },
WebhookOptions: apiserveroptions.AuditWebhookOptions{ WebhookOptions: apiserveroptions.AuditWebhookOptions{
Mode: "blocking", Mode: "blocking",
......
...@@ -81,7 +81,7 @@ type AuditWebhookOptions struct { ...@@ -81,7 +81,7 @@ type AuditWebhookOptions struct {
func NewAuditOptions() *AuditOptions { func NewAuditOptions() *AuditOptions {
return &AuditOptions{ return &AuditOptions{
WebhookOptions: AuditWebhookOptions{Mode: pluginwebhook.ModeBatch}, 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