-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
76 lines (65 loc) · 2.14 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
variable "pem" {
type = string
description = <<EOT
The contents of cloud-connect.pem generated by https://github.com/altinity/altinitycloud-connect login.
Omit if you want to keep the value out of Terraform state. Note that you'll be responsible for
creating a Kubernetes Secret named "cloud-connect" containing "cloud-connect.pem" in
"altinity-cloud-system" namespace (use "system_namespace" output). You'll also need to change
"use_external_secret" to true.
EOT
default = ""
}
variable "use_external_secret" {
type = bool
default = false
}
variable "url" {
type = string
default = "https://anywhere.altinity.cloud"
}
variable "image" {
type = string
description = "Custom Docker image (defaults to altinity/cloud-connect:$version)"
default = ""
}
variable "image_pull_policy" {
type = string
description = "Image pull policy as described in https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy (defaults to \"IfNotPresent\" except when referred to latest master (in which case it's \"Always\"))"
default = ""
}
variable "wait_connected" {
type = bool
description = "Wait for environment to be connected"
default = false
}
variable "wait_ready" {
type = bool
description = "Wait for environment to be ready (to launch ClickHouse clusters & accept traffic) (implies connected)"
default = false
}
variable "wait_timeout_in_seconds" {
type = number
description = "Max time to wait in seconds (45min by default)"
default = 2700
}
variable "namespace_annotations" {
type = map(string)
description = "Map of annotations for `altinity-cloud-*` namespaces"
default = {}
}
variable "namespace_labels" {
type = map(string)
description = "Map of labels for `altinity-cloud-*` namespaces"
default = {}
}
variable "tolerations" {
description = "List of tolerations for the deployment"
type = list(object({
key = string
operator = string
value = optional(string)
effect = optional(string)
toleration_seconds = optional(number)
}))
default = []
}