forked from basisai/terraform-helm-actions-runner-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
110 lines (92 loc) · 2.64 KB
/
variables.tf
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
variable "action_runner_scale_set_controller_chart_version" {
description = "ARC Controller chart version"
type = string
default = "0.9.3"
}
variable "action_runner_scale_set_chart_version" {
description = "ARC Scale set chart version"
type = string
default = "0.9.3"
}
variable "controller_helm_release_name" {
description = "Helm release name for the controller"
type = string
default = "gha-controller"
}
variable "scale_set_release_name" {
description = "Helm release name for the scale set"
type = string
default = "gha-scale-set"
}
variable "min_runners" {
description = "Minimum number of runners to scale to"
type = number
default = 1
}
variable "max_runners" {
description = "Maximum number of runners to scale to"
type = number
default = 3
}
variable "runner_scale_set_name" {
description = "Name of the scale set"
type = string
}
variable "runner_group" {
description = "Name of the runner group"
type = string
}
#####################
# k8s helm provider #
#####################
variable "k8s_token" {
description = "Kubernetes token"
type = string
sensitive = true
}
variable "k8s_host" {
description = "Kubernetes host"
type = string
}
variable "k8s_cluster_ca_certificate" {
description = "Kubernetes cluster CA certificate"
type = string
sensitive = true
}
#######################
# Github Creds
#######################
variable "github_config_url" {
description = "githubConfigUrl is the GitHub url for where you want to configure runners"
type = string
# Please set to an GitHub Org URL or GitHub enterprise URL or repo url
}
variable "auth_method" {
description = "values for auth method"
type = string
default = "github-app"
validation {
condition = can(regex("^(github-app|pat)$", var.auth_method))
error_message = "auth_method must be either github-app or pat"
}
}
variable "github_app_id" {
description = "GitHub App ID. This can't be set at the same time as github_token"
type = string
default = ""
}
variable "github_app_installation_id" {
description = "GitHub App Installation ID. This can't be set at the same time as github_token"
type = string
default = ""
}
variable "github_app_private_key" {
description = "The multiline string of your GitHub App's private key. This can't be set at the same time as github_token"
type = string
default = ""
}
variable "github_token" {
description = "Enterprise Runners' pat token of an enterprise admin user"
type = string
default = ""
}