Skip to content

Commit

Permalink
feat: Keda self-hosted runner scaler considers runner's labels (#368)
Browse files Browse the repository at this point in the history
feat: add labels to autoscaler keda
  • Loading branch information
christian-calabrese authored Oct 28, 2024
1 parent b38a631 commit 8405da9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions container_app_job_gh_runner/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ locals {
rule = {
name = "${local.project}-${var.job.name}-github-runner-rule"
type = "github-runner"
metadata = {
metadata = merge({
owner = var.job.repo_owner
runnerScope = "repo"
repos = "${var.job.repo}"
targetWorkflowQueueLength = "1"
github-runner = "https://api.github.com"
}
}, length(var.runner_labels) > 0 ? { labels = join(",", var.runner_labels) } : {})
auth = [
{
secretRef = "personal-access-token"
Expand Down
4 changes: 2 additions & 2 deletions container_app_job_gh_runner_v2/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ locals {
rule = {
name = "${local.project}-${var.job.name}-github-runner-rule"
type = "github-runner"
metadata = {
metadata = merge({
owner = var.job_meta.repo_owner
runnerScope = var.job_meta.runner_scope
repos = "${var.job_meta.repo}"
targetWorkflowQueueLength = var.job_meta.target_workflow_queue_length
github-runner = var.job_meta.github_runner
}
}, length(var.runner_labels) > 0 ? { labels = join(",", var.runner_labels) } : {})
auth = [
{
secretRef = "personal-access-token"
Expand Down

0 comments on commit 8405da9

Please sign in to comment.