Log used settings on startup

This commit is contained in:
Yusuke Kuoka 2021-05-11 02:34:55 +00:00
parent ab25907050
commit 9d961c58ff
1 changed files with 14 additions and 0 deletions

14
main.go
View File

@ -158,6 +158,20 @@ func main() {
gitHubAPICacheDuration = syncPeriod - 10*time.Second
}
if gitHubAPICacheDuration < 0 {
gitHubAPICacheDuration = 0
}
log.Info(
"Initializing actions-runner-controller",
"github-api-cahce-duration", gitHubAPICacheDuration,
"sync-period", syncPeriod,
"runner-image", runnerImage,
"docker-image", dockerImage,
"common-runnner-labels", commonRunnerLabels,
"watch-namespace", namespace,
)
horizontalRunnerAutoscaler := &controllers.HorizontalRunnerAutoscalerReconciler{
Client: mgr.GetClient(),
Log: log.WithName("horizontalrunnerautoscaler"),