Skip to content

Commit 071e5f4

Browse files
author
Dan Vu
committed
Renamed variable
1 parent e415f9f commit 071e5f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

provider-integration/im2/pkg/controller/job_audit_log.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
var jobAuditFileRegex = regexp.MustCompile(`^audit-(\d+)-(\d{4}-\d{2}-\d{2})\.jsonl$`)
1414

1515
func initJobAuditLog() {
16-
cfgK8s := config.Services.Kubernetes()
17-
if cfgK8s == nil {
16+
k8sCfg := config.Services.Kubernetes()
17+
if k8sCfg == nil {
1818
log.Error("Job audit log server failed to initialize Kubernetes config")
1919
return
2020
}
21-
jobAuditLogFolder := filepath.Join(cfgK8s.FileSystem.MountPoint, "audit")
21+
jobAuditLogFolder := filepath.Join(k8sCfg.FileSystem.MountPoint, "audit")
2222
retentionDays := config.Provider.JobAuditLog.RetentionPeriodInDays
2323
go func() {
2424
cleanupLogs(jobAuditLogFolder, retentionDays) // run once at startup

0 commit comments

Comments
 (0)