From b4af22ece0c6c8efdb7094e836ad36551b1aa274 Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Thu, 16 Apr 2026 14:51:31 +0200 Subject: [PATCH 1/3] feat(terraform): expose runner path as module output Allow consumers to access the configured GitHub path for each runner, enabling routing decisions based on the org or repo a runner is registered to. --- terraform/charm/outputs.tf | 5 +++++ terraform/product/outputs.tf | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/terraform/charm/outputs.tf b/terraform/charm/outputs.tf index 8ee20ed842..8764a4f42f 100644 --- a/terraform/charm/outputs.tf +++ b/terraform/charm/outputs.tf @@ -29,6 +29,11 @@ output "requires" { } } +output "path" { + description = "GitHub path (org or repo) the runner is registered to." + value = lookup(var.config, "path", "") +} + output "provides" { value = { cos_agent = "cos-agent" diff --git a/terraform/product/outputs.tf b/terraform/product/outputs.tf index deac1bfa34..7bec02e556 100644 --- a/terraform/product/outputs.tf +++ b/terraform/product/outputs.tf @@ -12,6 +12,11 @@ output "all_runner_names" { } +output "all_runner_paths" { + description = "Map of github-runner application name to its configured GitHub path." + value = { for name, github_runner in module.github_runner : name => github_runner.path } +} + output "all_app_names" { description = "Names of the all the deployed apps, github-runner plus github-runner-image-builder." value = concat([for github_runner in values(module.github_runner) : github_runner.app_name], [module.github_runner_image_builder.app_name]) From bd0cc709bc4d4d7532b4d7f688ecebe83ba654ed Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Thu, 16 Apr 2026 14:59:39 +0200 Subject: [PATCH 2/3] docs: update changelog with terraform path output --- docs/changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 93bf02c8a4..35f790811a 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,10 @@ This changelog documents user-relevant changes to the GitHub runner charm. +## 2026-04-16 + +- Exposed the configured GitHub path (org or repo) as a Terraform module output, allowing consumers to make decisions based on which path a runner is registered to. + ## 2026-04-13 - Fixed Juju secrets not picking up new revisions. The charm now uses `refresh=True` when reading secret contents, ensuring it always retrieves the latest revision instead of a cached one. From 98114a4dded3046a2808349dfc71935552fa517c Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Fri, 24 Apr 2026 08:18:15 +0200 Subject: [PATCH 3/3] fix(docs): repo -> repository --- docs/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 253d4007e2..067086f5b4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,7 +4,7 @@ This changelog documents user-relevant changes to the GitHub runner charm. ## 2026-04-24 -- Exposed the configured GitHub path (org or repo) as a Terraform module output, allowing consumers to make decisions based on which path a runner is registered to. +- Exposed the configured GitHub path (org or repository) as a Terraform module output, allowing consumers to make decisions based on which path a runner is registered to. ## 2026-04-22