Skip to content

Commit

Permalink
Could not read reconciler cron expression should be a warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dougbtv committed Oct 15, 2024
1 parent d34e237 commit 685506e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func determineCronExpression(configPath string) (string, error) {
return "", logging.Errorf("could not get flatipam config: %v", err)
}

_ = logging.Errorf("could not read file: %v, using expression from flatfile: %v", err, flatipam.IPAM.ReconcilerCronExpression)
logging.Verbosef("notice: could not read file: %v, defaulting to expression from configuration: %v", err, flatipam.IPAM.ReconcilerCronExpression)
return flatipam.IPAM.ReconcilerCronExpression, nil
}
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?
Expand Down

0 comments on commit 685506e

Please sign in to comment.