diff --git a/pkg/podexecutor/staticpod.go b/pkg/podexecutor/staticpod.go index 5dfc71affc..a8ff5f8246 100644 --- a/pkg/podexecutor/staticpod.go +++ b/pkg/podexecutor/staticpod.go @@ -280,10 +280,11 @@ func (s *StaticPodConfig) APIServer(_ context.Context, etcdReady <-chan struct{} "--audit-log-maxbackup=10", "--audit-log-maxsize=100", } - args = append(extraArgs, args...) if auditLogFile == "" { auditLogFile = filepath.Join(s.DataDir, "server/logs/audit.log") + extraArgs = append(extraArgs, "--audit-log-path="+auditLogFile) } + args = append(extraArgs, args...) } args = append([]string{"--admission-control-config-file=" + s.PSAConfigFile}, args...)