-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
90 lines (77 loc) · 2.03 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
variable "create_project" {
type = bool
default = false
description = "create a new agent managing project or use existing one"
}
variable "project_name" {
type = string
default = "k8s-agent"
description = "agent managing project nice/visible name"
}
variable "project_path" {
type = string
default = null
description = "agent managing project technical name (slug)"
}
variable "project_namespace" {
type = string
default = ""
description = "agent managing project namespace, required when creating new project"
}
variable "agent_config" {
type = any
default = {}
description = <<EOF
agent config to be used regarding:
* https://docs.gitlab.com/ee/user/clusters/agent/gitops.html
* https://docs.gitlab.com/ee/user/clusters/agent/ci_cd_workflow.html#authorize-the-agent-to-access-your-projects
EOF
}
variable "author_email" {
type = string
default = "[email protected]"
description = "author email to be used for commit"
}
variable "commit_message" {
type = string
default = "feature: add/update agent config"
description = "use this commit message for agent config update"
}
variable "agent_name" {
type = string
description = "agent name"
}
variable "chart_version" {
type = string
default = "1.14.1"
description = "agent chart version"
}
variable "agent_version" {
type = string
default = null
description = "specific agent version"
}
variable "token_description" {
type = string
default = ""
description = "gilab agent token description in managing project"
}
variable "namespace" {
type = string
default = "gitlab-agent"
description = "agent namespace"
}
variable "create_namespace" {
type = bool
default = false
description = "option for create namespace"
}
variable "gitlab_agent_cluster_projects" {
type = map(object({
envs = list(object({
scope = string
namespace = string
}))
path = string
}))
}