1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 22:46:25 +00:00

change enc provider arg, update defaults for audit log config

This commit is contained in:
Murali Paluru
2019-11-21 13:56:48 -08:00
committed by Alena Prokharchyk
parent 843e14135f
commit b9900f3b9c
2 changed files with 6 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ const (
KubeAPIArgAuditLogFormat = "audit-log-format"
KubeAPIArgAuditPolicyFile = "audit-policy-file"
DefaultKubeAPIArgAuditLogPathValue = "/var/log/kube-audit/audit-log.json"
DefaultKubeAPIArgAuditPolicyFileValue = "/etc/kubernetes/audit.yaml"
DefaultKubeAPIArgAuditPolicyFileValue = "/etc/kubernetes/audit-policy.yaml"
)
type ExternalFlags struct {
@@ -284,8 +284,8 @@ func newDefaultAuditPolicy() *auditv1.Policy {
func newDefaultAuditLogConfig() *v3.AuditLogConfig {
p := newDefaultAuditPolicy()
c := &v3.AuditLogConfig{
MaxAge: 5,
MaxBackup: 5,
MaxAge: 30,
MaxBackup: 10,
MaxSize: 100,
Path: DefaultKubeAPIArgAuditLogPathValue,
Format: "json",