Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 9353734

Browse files
authored
fix(multi-runner): remove renundant default labels (#3715)
The multi runner module is adding on two places the default labels like `self-hosted`, `os` and `arch`. The PR ensures the default labels are only added in [`multi-runner/runners.tf`](https://github.com/philips-labs/terraform-aws-github-runner/blob/4f257f9ff643e1f31e597a15dd9a0a65afbdc605/modules/multi-runner/runners.tf#L48)
1 parent 4f257f9 commit 9353734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: modules/multi-runner/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ locals {
88
key_base64 = module.ssm.parameters.github_app_key_base64
99
}
1010

11-
runner_extra_labels = { for k, v in var.multi_runner_config : k => sort(setsubtract(setunion(flatten(v.matcherConfig.labelMatchers), compact(v.runner_config.runner_extra_labels)), ["self-hosted", v.runner_config.runner_os, v.runner_config.runner_architecture])) }
11+
runner_extra_labels = { for k, v in var.multi_runner_config : k => sort(setunion(flatten(v.matcherConfig.labelMatchers), compact(v.runner_config.runner_extra_labels))) }
1212

1313
runner_config = { for k, v in var.multi_runner_config : k => merge({ id = aws_sqs_queue.queued_builds[k].id, arn = aws_sqs_queue.queued_builds[k].arn }, merge(v, { runner_config = merge(v.runner_config, { runner_extra_labels = local.runner_extra_labels[k] }) })) }
1414

0 commit comments

Comments
 (0)