Skip to content

Commit 532585d

Browse files
committed
Could not read reconciler cron expression should be a warning
Changed from an error, since it returns a default value here, it shouldn't say it's an error, only warn that the file is not present.
1 parent d34e237 commit 532585d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/reconciler/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func determineCronExpression(configPath string) (string, error) {
7878
return "", logging.Errorf("could not get flatipam config: %v", err)
7979
}
8080

81-
_ = logging.Errorf("could not read file: %v, using expression from flatfile: %v", err, flatipam.IPAM.ReconcilerCronExpression)
81+
_ = logging.Verbosef("warning: could not read file: %v, using expression from flatfile: %v", err, flatipam.IPAM.ReconcilerCronExpression)
8282
return flatipam.IPAM.ReconcilerCronExpression, nil
8383
}
8484
logging.Verbosef("using expression: %v", strings.TrimSpace(string(fileContents))) // do i need to trim spaces? idk i think the file would JUST be the expression?

0 commit comments

Comments
 (0)