-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
104 lines (88 loc) · 2.58 KB
/
variables.tf
File metadata and controls
104 lines (88 loc) · 2.58 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
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
variable "cluster_name" {
type = string
description = "The name of the cluster"
}
variable "endpoint" {
type = string
description = "The endpoint of the control plane"
default = "https://dakr.devzero.io"
}
variable "enable_zxporter" {
type = bool
description = "Whether to install the zxporter component"
default = true
}
variable "enable_operator" {
type = bool
description = "Whether to install the devzero-operator component"
default = true
}
variable "cloud_provider" {
type = string
description = "The cloud provider of the cluster. Supported values: aws, azure, gcp, \"\". Empty string will be treated as no cloud credentials are required."
default = ""
validation {
condition = contains(["aws", "azure", "gcp", ""], var.cloud_provider)
error_message = "cloud_provider must be one of: aws, azure, gcp, or empty string (\"\")."
}
}
variable "provision_prometheus" {
type = bool
description = "Whether to provision prometheus"
default = true
}
variable "enable_scheduler" {
type = bool
description = "Whether to enable the scheduler"
default = true
}
variable "enable_live_migration_agent" {
type = bool
description = "Whether to enable the live migration agent"
default = false
}
variable "runtime" {
type = string
description = "The runtime of the cluster. Supported values: containerd, rke2, k3s."
default = "containerd"
validation {
condition = contains(["containerd", "rke2", "k3s"], var.runtime)
error_message = "runtime must be one of: containerd, rke2, k3s."
}
}
variable "containerd_config_path" {
type = string
description = "The path to the containerd config"
default = null
}
variable "containerd_socket_path" {
type = string
description = "The path to the containerd socket"
default = null
}
variable "zxporter_extra_values" {
type = list(object({
name = string
value = string
}))
description = "Additional Helm values for the zxporter chart (as name->value)."
default = []
}
variable "operator_extra_values" {
type = list(object({
name = string
value = string
}))
description = "Additional Helm values for the devzero-operator chart (as name->value)."
default = []
}
variable "zxporter_chart_version" {
type = string
description = "The Helm chart version for zxporter"
default = "0.0.26"
}
variable "operator_chart_version" {
type = string
description = "The Helm chart version for devzero-operator"
default = "0.1.14"
}