mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-13 13:06:51 +00:00
Log used settings on startup
This commit is contained in:
14
main.go
14
main.go
@@ -158,6 +158,20 @@ func main() {
|
|||||||
gitHubAPICacheDuration = syncPeriod - 10*time.Second
|
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{
|
horizontalRunnerAutoscaler := &controllers.HorizontalRunnerAutoscalerReconciler{
|
||||||
Client: mgr.GetClient(),
|
Client: mgr.GetClient(),
|
||||||
Log: log.WithName("horizontalrunnerautoscaler"),
|
Log: log.WithName("horizontalrunnerautoscaler"),
|
||||||
|
|||||||
Reference in New Issue
Block a user