Skip to content

Commit b3b63b7

Browse files
Use label instead or name (#15)
Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
1 parent 0c7b119 commit b3b63b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ent_runners.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resource "kubernetes_manifest" "github_ent_runners" {
66
kind = "RunnerDeployment"
77

88
metadata = {
9-
name = "${lower(each.value.name)}-runner-deployment"
9+
name = "${lower(each.value.label)}-runner-deployment"
1010
namespace = helm_release.release.namespace
1111
}
1212

@@ -42,7 +42,7 @@ resource "kubernetes_manifest" "github_ent_runners_horizontal_autoscaler" {
4242
kind = "HorizontalRunnerAutoscaler"
4343

4444
metadata = {
45-
name = "${lower(each.value.name)}-runner-deployment"
45+
name = "${lower(each.value.label)}-runner-deployment"
4646
namespace = helm_release.release.namespace
4747
}
4848

@@ -51,7 +51,7 @@ resource "kubernetes_manifest" "github_ent_runners_horizontal_autoscaler" {
5151
maxReplicas = each.value.max_replicas
5252
scaleTargetRef = {
5353
kind = "RunnerDeployment"
54-
name = "${lower(each.value.name)}-runner-deployment"
54+
name = "${lower(each.value.label)}-runner-deployment"
5555
}
5656
scaleUpTriggers = [
5757
{

0 commit comments

Comments
 (0)