-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-runner-controller.tf
More file actions
31 lines (26 loc) · 1.07 KB
/
github-runner-controller.tf
File metadata and controls
31 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
resource "kubernetes_namespace" "github-runner-controller" {
count = var.github-runner-controller ? 1 : 0
metadata {
name = "github-runner-controller"
}
}
resource "helm_release" "github-runner-controller" {
name = "actions-runner-controller"
repository = "https://actions-runner-controller.github.io/actions-runner-controller"
chart = "actions-runner-controller"
version = "v0.23.7"
namespace = "github-runner-controller"
count = var.github-runner-controller ? 1 : 0
values = [templatefile("${path.module}/values/github-runner-controller.yaml", {
githubkey = "${data.local_sensitive_file.githubkey.content}"
})]
depends_on = [ kubernetes_namespace.github-runner-controller ]
}
resource "kubectl_manifest" "github-runner-controller" {
yaml_body = file("${path.module}/manifests/github-runner-controller.yaml")
depends_on = [ kubernetes_namespace.github-runner-controller ]
count = var.github-runner-controller ? 1 : 0
}
data "local_sensitive_file" "githubkey" {
filename = "${path.module}/local/githubkey.json"
}