We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e415f9f commit 071e5f4Copy full SHA for 071e5f4
1 file changed
provider-integration/im2/pkg/controller/job_audit_log.go
@@ -13,12 +13,12 @@ import (
13
var jobAuditFileRegex = regexp.MustCompile(`^audit-(\d+)-(\d{4}-\d{2}-\d{2})\.jsonl$`)
14
15
func initJobAuditLog() {
16
- cfgK8s := config.Services.Kubernetes()
17
- if cfgK8s == nil {
+ k8sCfg := config.Services.Kubernetes()
+ if k8sCfg == nil {
18
log.Error("Job audit log server failed to initialize Kubernetes config")
19
return
20
}
21
- jobAuditLogFolder := filepath.Join(cfgK8s.FileSystem.MountPoint, "audit")
+ jobAuditLogFolder := filepath.Join(k8sCfg.FileSystem.MountPoint, "audit")
22
retentionDays := config.Provider.JobAuditLog.RetentionPeriodInDays
23
go func() {
24
cleanupLogs(jobAuditLogFolder, retentionDays) // run once at startup
0 commit comments