# arc-runner-set

One GitHub Actions runner scale set (an AutoscalingRunnerSet) for the arc controller

This page is generated from [`kix/packages/experimental/arc-runner-set`](https://github.com/kix-run/kix/tree/main/kix/packages/experimental/arc-runner-set).

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.arc-runner-set` |
| Default software version | `2.338.2` |

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `arc` | Required |
| `githubConfigSecret` | Required |
| `priorityClass` | Optional |

## Options

### `env`

Extra environment variables. A value is a string, a `fieldRef` source such as `{ valueFrom.fieldRef.fieldPath = "metadata.name"; }`, or a `secretKeyRef` source naming a Secret managed outside Kix with `kix.untrackedRef`. A credential that comes from a dependency is wired by the package. Null removes a variable the package sets by default.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `extraSpec`

Merged over the AutoscalingRunnerSet spec the package builds.
`githubConfigUrl`, `githubConfigSecret`, `minRunners`, `maxRunners`,
and `template.spec.{serviceAccountName,automountServiceAccountToken,priorityClassName}`
are refused. Entries of `template.spec.containers` are matched by
name: the `runner` entry is merged over the package's runner
container (except `image`, `env`, and `resources`, which have
options), and other entries are added as further containers.

- **Type:** `attribute set of anything`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    runnerScaleSetName = "linux-x64";
  }
  ```

### `githubConfigUrl`

URL of the organization, repository (`<org>/<repo>`), or enterprise (`enterprises/<name>`) the runners register with.

- **Type:** `string`
- **Example:** `"https://github.com/example-org"`

### `image`

Image of the runner container. The controller turns off the runner's self-update, and GitHub stops sending jobs to a runner more than 30 days behind the latest runner release, so keep the tag current. A runner set whose phase is `Outdated` has hit that limit.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:6d0b2d80d80f143f77dcb676e50920100bbb547e39e883454d57f45ab8c31300";
    pullPolicy = "IfNotPresent";
    repository = "ghcr.io/actions/actions-runner";
    tag = "2.338.2";
  }
  ```

### `image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"ghcr.io/actions/actions-runner"`

### `image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"2.338.2"`

### `maxRunners`

Upper bound on runner pods. Upstream leaves it unbounded.

- **Type:** `unsigned integer, meaning >=0`

### `minRunners`

Idle runners kept ready for new jobs.

- **Type:** `unsigned integer, meaning >=0`
- **Default:** `0`

### `resources`

Requests and limits of the runner container. No defaults, because jobs vary; null fields are left out.

- **Type:** `submodule`
- **Default:** `{ }`

### `resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `rules`

Role rules in this namespace for the runner pods' ServiceAccount. With none, the runner pods get no API token.

- **Type:** `list of (submodule)`
- **Default:** `[ ]`
- **Example:**

  ```nix
  [
    {
      apiGroups = [
        "kubevirt.io"
      ];
      resources = [
        "virtualmachines"
      ];
      verbs = [
        "create"
        "delete"
        "get"
      ];
    }
  ]
  ```

### `rules.*.apiGroups`

API groups, `""` for the core group.

- **Type:** `list of string`
- **Default:** `[ ]`

### `rules.*.resourceNames`

Object names the rule is limited to. Null covers every object.

- **Type:** `null or (list of string)`
- **Default:** `null`

### `rules.*.resources`

Resource names, such as `pods`.

- **Type:** `list of string`
- **Default:** `[ ]`

### `rules.*.verbs`

Verbs, such as `get` and `create`.

- **Type:** `list of string`
- **Default:** `[ ]`