Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33cbb7a1d9 | |||
| 9cd2ceb86b |
@@ -1,10 +1,10 @@
|
||||
# GitHub Actions Runner Scale Set Client (Public Preview)
|
||||
# GitHub Actions Runner Scale Set Client (Private Preview)
|
||||
|
||||
> Status: **Public Preview** – While the API is stable, interfaces and examples in this repository may change.
|
||||
> Status: **Private Preview** – While the API is stable, interfaces and examples in this repository may change.
|
||||
|
||||
This repository provides a standalone Go client for the GitHub Actions **Runner Scale Set** APIs. It is extracted from the `actions-runner-controller` project so that platform teams, integrators, and infrastructure providers can build **their own custom autoscaling solutions** for GitHub Actions runners.
|
||||
|
||||
You don't need to adopt the full controller or Kubernetes to take advantage of scale sets. The client supports the same platforms as the GitHub Actions runner, including containers and virtual machines running Windows, Linux, and macOS. This package contains all the primitives you need: create, update, and delete scale sets; generate just-in-time (JIT) runner configs; and manage message sessions.
|
||||
You do *not* need to adopt the full controller (and Kubernetes) to take advantage of scale sets. This package contains all the primitives you need: create/update/delete scale sets, generate just‑in‑time (JIT) runner configs, and manage message sessions.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"log/slog"
|
||||
"maps"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -835,6 +836,8 @@ func (c *Client) getActionsServiceAdminConnection(ctx context.Context, rt *regis
|
||||
return nil, fmt.Errorf("failed to get actions service admin connection: %w", err)
|
||||
}
|
||||
|
||||
slog.Info("got connection", *adminConnection.ActionsServiceURL, c.userAgent)
|
||||
|
||||
return adminConnection, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -139,6 +139,7 @@ func (c *commonClient) setUserAgent() {
|
||||
BuildCommitSHA: buildInfo.commitSHA,
|
||||
})
|
||||
c.userAgent = string(b)
|
||||
slog.Info("user agent", "useragent", c.userAgent)
|
||||
}
|
||||
|
||||
// HTTPOption defines a functional option for configuring the Client.
|
||||
|
||||
Reference in New Issue
Block a user