Skip to content

Commit b5b6835

Browse files
committed
Parameterizing the replica field
1 parent 88f274a commit b5b6835

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

terraform-modules/aws/helm/github_runner/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ resource "kubernetes_manifest" "runnerDeployment" {
145145
}
146146

147147
spec = {
148-
replicas = 1
148+
replicas = var.runner_number_of_replicas
149149

150150
template ={
151151
spec = {

terraform-modules/aws/helm/github_runner/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,9 @@ variable "runner_deployment_name" {
5959
description = "Runner config. The runner CRD deployment name."
6060
default = "runnerdeploy"
6161
}
62+
63+
variable "runner_number_of_replicas" {
64+
type = number
65+
description = "Runner config. The number of runner replicas to create"
66+
default = 1
67+
}

0 commit comments

Comments
 (0)