This commit is contained in:
Antoine Deschênes 2026-05-26 08:18:29 +08:00 committed by GitHub
commit 2af3ae789e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
"net/url"
"strconv"
"sync"
"time"
"github.com/actions/actions-runner-controller/apis/actions.github.com/v1alpha1/appconfig"
"github.com/actions/actions-runner-controller/build"
@ -135,7 +136,10 @@ func (o *ClientForOptions) newClient() (*scaleset.Client, error) {
Subsystem: "gha-scale-set-controller",
}
var options []scaleset.HTTPOption
options := []scaleset.HTTPOption{
scaleset.WithTimeout(30 * time.Second),
scaleset.WithRetryMax(2),
}
if o.RootCAs != nil {
options = append(options, scaleset.WithRootCAs(o.RootCAs))
}